Join Fox News for access to this content
Plus special access to select articles and other premium content with your account - free of charge.
Please enter a valid email address.

A federal judge on Wednesday temporarily blocked a California law that would have banned the carrying of firearms in most public places after ruling that it violates the Second Amendment. 

U.S. District Judge Cormac Carney granted a preliminary injunction blocking the law, calling it "sweeping, repugnant to the Second Amendment, and openly defiant of the Supreme Court." He said the law also deprives people the ability to defend themselves and their loved ones. 

The ruling was a win for the California Rifle and Pistol Association, which sued to block the law. 

"California progressive politicians refuse to accept the Supreme Court’s mandate from the Bruen case and are trying every creative ploy they can imagine to get around it," the California association’s president, Chuck Michel, said in a statement. "The Court saw through the State’s gambit."

SUPREME COURT ALLOWS ILLINOIS SEMIAUTOMATIC WEAPONS BAN TO STAY IN PLACE

Someone firing a handgun

A man fires his pistol at an indoor shooting range during a qualification course to renew his Carry Concealed handgun permit at the Placer Sporting Club in Roseville, Calif. A federal judge on Wednesday temporarily blocked a California law that would have banned carrying firearms in most public places, ruling that it violates the Second Amendment of the U.S.  (AP Photo/Rich Pedroncelli)

Fox News Digital has reached out to the CRPA as well as the California Attorney General. 

Randy Kozuch, executive director of the National Rifle Association (NRA) told Fox News Digital that Wednesday's ruling "once more reaffirms that Americans have a constitutional right to carry a firearm for self-defense, and that government cannot infringe upon this right."

The law was signed by Newsom in September and was slated to go into effect on Jan. 1. It effectively banned people from carrying concealed guns in 26 places including public parks and playgrounds, churches, banks and zoos, regardless if they have a concealed weapon carry permit or not. 

ARMED MOM SCHOOLS CONGRESS ON BOOMING FEMALE GUN OWNERSHIP: ‘REFUSE TO STAND BY’

Michel said under the law, permit holders "wouldn’t be able to drive across town without passing through a prohibited area and breaking the law." He argued the ruling makes Californians safer because criminals are deterred when law-abiding citizens can defend themselves.

In a statement to Fox News Digital, Newsom said Wednesday's ruling defies common sense. 

"This ruling outrageously calls California's data-backed gun safety efforts 'repugnant.' What is repugnant is this ruling, which greenlights the proliferation of guns in our hospitals, libraries, and children’s playgrounds — spaces, which should be safe for all," he said. 

He said California will keep "fighting to defend our laws and to enshrine a Right to Safety in the Constitution. The lives of our kids depend on it."

In January, Newsom called the Second Amendment a "suicide pact" during an interview following two mass shootings in the state. 

CLICK HERE TO GET THE FOX NEWS APP

"This Second Amendment's becoming a suicide pact, it feels like," he said. "California's 37% lower gun death rate of the rest of the nation, and yet, with all that evidence, no one on the other side seems to give a d--n."

The Associated Press contributed to this report.