Laws in New York and Connecticut banning certain semiautomatic assault weapons and large-capacity ammunition magazines do not violate the Second Amendment, the U.S. Court of Appeals for the Second Circuit ruled Monday.

Upholding the “core prohibitions” on guns with military-style features passed in the wake of the 2012 murder of 20 students and six adults at the Sandy Hook Elementary School in Newtown, Connecticut, the Second Circuit said the measures do not violate the Second Amendment’s guarantee of “the right of the people to keep and bear arms.”