The state argued in favor of the gun control measure, calling it a reasonable response to public safety concerns.