A federal judge on Wednesday blocked a California bill that outlaws AI-generated “deepfake” content and required the removal of “deceptive content” from social media. 

The preliminary injunction comes just two weeks after Democratic Gov. Gavin Newsom signed the controversial measure into law, igniting a spat with X owner and Tesla CEO Elon Musk. It also comes roughly a month before Election Day. 

The Hamilton Lincoln Law Institute had filed a lawsuit on behalf of Christopher Kohls, known as “Mr Reagan” online, who created satirical political videos, including one calling out the governor targeted as being “illegal” under the bill he signed. 

In the lawsuit, Reagan argued that the bill was unconstitutional. 

“The court agreed, granting a preliminary injunction that finds California has no ‘license to bulldoze over the longstanding tradition of critique, parody, and satire protected by the First Amendment,’” HLLI said in a news release. “HLLI does not know whether California intends to appeal.”

Newsom signed the controversial measure into law last month.

Newsom signed the controversial measure into law last month. (Anadolu / Contributor)

800-PLUS BILLS LEFT ON NEWSOM’S DESK ILLUSTRATE CALIFORNIA’S OVERREGULATION PROBLEM: EXPERTS

A spokesperson for Newsom’s office warned that deepfakes “threaten the integrity of our elections, and these new laws protect our democracy while preserving free speech — in a manner no more stringent than those in other states, including deep-red Alabama.”

Newsom in ABC spin room

California Gov. Gavin Newsom talks to journalists in the media center at the Pennsylvania Convention Center before the first presidential debate in Philadelphia, Sept. 10. (Chip Somodevilla/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

“We’re confident the courts will uphold the state’s ability to regulate these types of dangerous and misleading deepfakes,” the governor’s office said in a statement to Fox News Digital, noting that “Satire remains alive and well in California — even for those who miss the punchline.”

Fox News Digital’s Jamie Joseph contributed to this report.