The case stems from New York City's laws on where licensed gun owners can take their weapons.