Chief U.S. District Judge William M. Skretny said the law, a response to the Sandy Hook shootings that killed 20 children and six adults, is not a violation of the Second Amendment.

The one exception Skretny found was the law’s seven-round limit, which he called “tenuous, strained and unsupported.”

“The Court finds that the challenged provisions of the SAFE Act, including the Act’s definition and regulation of assault weapons and its ban on high-capacity magazines, further the state’s important interest in public safety and do not impermissibly infringe on Plaintiff’s Second Amendment rights,” the judge said in his ruling.

Skretny is George H.W. Bush appointee and took the bench in 1990. He is Chief Judge of the United States District Court for the Western District of New York.

Legal commentators and scholars believe the challenge to New York’s SAFE Act, one of the strictest set of gun laws in the country, could end up before the Supreme Court of the United States in coming months.