The ruling from the state’s high court could end up entangled with the U.S. Supreme Court’s consideration of the legality of AR-15 bans.