Lawmakers and governors in states with similar rules rushed to fortify their restrictions in the face of the court decision. Their attempts to thread the legal needle previewed what will likely be a years-long effort to defend and extend firearm rules under the court’s sweeping new Second Amendment test.