By Bria Brown

DETROIT (AP) — A federal judge in Michigan should have blocked a Trump administration ban on bump stocks, a device that allows semiautomatic firearms to fire rapidly, an appeals court said Thursday.

The ban came in response to a 2017 shooting in Las Vegas in which a gunman attached bump stocks to assault-style rifles to shoot concertgoers from his hotel room.

READ MORE: Michigan Matters: Two Stars With Motor City Ties Lighting Up Entertainment World

The prohibition came in the form of a regulation from the U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives, which treated bump stocks as if they are illegal machine guns. But the court, in a 2-1 decision, said changes in criminal law are up to Congress.

“It is not the role of the executive — particularly the unelected administrative state — to dictate to the public what is right and what is wrong,” said judges Alice Batchelder and Eric Murphy of the 6th U.S. Circuit Court of Appeals.

The court also said a bump stock doesn’t qualify as a machine gun.

“This is great news,” said Erich Pratt, senior vice president of Virginia-based Gun Owners of America.

READ MORE: 23rd Annual 'A Home For The Holidays At The Grove' Comes To CBS On Sunday, December 5th

In 2019, U.S. District Judge Paul Maloney in western Michigan turned down an injunction that would have stopped the bump stock ban. The case now will return to his court.

Gun owner groups “are likely to prevail on the merits and … their motion for an injunction should have been granted,” the appeals court said.

Decisions from the 6th Circuit set legal precedent in federal courts in Michigan, Ohio, Tennessee and Kentucky.

There have been different opinions about the bump stock ban in federal courts across the country, which makes it a strong candidate for review by the U.S. Supreme Court. A year ago, the Supreme Court turned down an appeal, but it was a procedural step in a case that wasn’t fully developed.

“Waiting should not be mistaken for lack of concern,” Justice Neil Gorsuch said at the time.

MORE NEWS: MDHHS Updates COVID-19 Quarantine Guidance For Michigan Schools

© 2021 Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.