1st court test for gun-rights sanctuaries