The Trump administration late Wednesday asked the U.S. Supreme Court to overturn New York City's controversial rule that bans individuals from transporting handguns outside their home in most cases.

In a brief filed with the high court, attorneys with the U.S. Department of Justice, which is not a party to the litigation, argued in a brief to the court on Wednesday that the rule contradicts the Second Amendment and unlawfully restricts interstate commerce by limiting where gun owners can bring their firearms.

The rule is being challenged before the high court by the New York State Rifle and Pistol Association, which appealed a lower court decision upholding the regulation from last year. The group is affiliated with the National Rifle Association.