A state appeals court had ruled in December that gun groups could present evidence to support their suit seeking to overturn the law, an exception to the usual requirement that statutes can be struck down only if they are unconstitutional.