A federal judge has temporarily blocked the Trump administration’s bid to publicly release 3D-printed gun blueprints, according to court papers.

In January, New York Attorney General Letitia James and 20 other attorneys general sued to bar a federal regulation that could allow the gun-making files to end up online, potentially causing the dissemination of unregistered and undetectable assault-style weapons — or so-called ghost guns.

Seattle federal Judge Richard Jones ruled Friday that the Trump administration could not release the 3D printing plans, at least until the case goes to trial.

“The proliferation of 3-D gun files on the internet likely renders ineffective arms embargoes, export controls, and other measures used to restrict the availability of uniquely dangerous weapons sought by those seeking to commit acts of terrorism or other serious crimes — implicates serious national security and public interests,” Jones’ decision reads.

“Ghost Guns threaten the safety of every man, woman, and child in America,” James said in a statement. “We filed this lawsuit to stop the Trump Administration from making it easier for our schools, our offices, and our places of worship from turning into killing fields, and, thanks to the court, the president has been rebuffed in his attempt to cater to the one constituency he cares about: the gun lobby.”

A spokesperson for the Department of Justice declined to comment.