Battle over gun rights shifts to state courthouses; challenges to new laws mounting