Assault-weapon bans have survived years of courtroom attacks, but a new wave of litigation is forcing judges, lawmakers, and.