The case challenged a New York City rule that restricted the transport of handguns by premises license holders to locations within city limits.