Gun access advocacy group Defense Distributed published downloadable gun blueprints five days early on Friday.
The firm had reached a settlement with the Trump administration in June to allow it to legally publish the plans.
But eight states and the District of Columbia sued the government on Monday to block the settlement, arguing the untraceable guns were a safety risk.
US District Judge Robert Lasnik issued a temporary restraining order halting the release hours before the 1 August deadline, saying the blueprints could fall into the wrong hands.
“There are 3D printers in public colleges and public spaces and there is the likelihood of potential irreparable harm,” he said.
Judge Lasnik scheduled another hearing for 10 August.
Although Defense Distributed had been expected to publish the blueprints on Wednesday, it uploaded files for nine types of gun to its website last week. Between Friday and Sunday, more than 1,000 people downloaded the files for building an AR-15 rifle – the same gun used in many of America’s mass shootings.
Which states are fighting the release?
The , Washington, by the state’s Attorney General Bob Ferguson.
New York, New Jersey, Massachusetts, Connecticut, Pennsylvania, Oregon, Maryland in addition to the District of Columbia are involved.
The complaint calls the 1 Aug release of gun blueprints “a bell that cannot be un-rung”.
“The Government has made no determination regarding the national security implications of the agreement, or its effects on sovereign US states’ ability to protect the safety of those within their borders.”
In addition, 20 state attorneys general have written to the State Department and Department of Justice about blocking the gun blueprints online.
What’s been the reaction?
Speaking outside the court, Washington attorney general Bob Ferguson called the judge’s decision a “complete, total victory”.
“Everything we asked for we got from Judge Lasnik,” he said, and called on President Trump to make it “unlawful for anyone to make this information available for anyone”.
The president had tweeted on Tuesday before the ruling that selling 3D guns to the public “doesn’t seem to make much sense” after settling with Defense Distributed in June.
I am looking into 3-D Plastic Guns being sold to the public. Already spoke to NRA, doesn’t seem to make much sense!
— Donald J. Trump (@realDonaldTrump) July 31, 2018
But the group’s founder Cody Wilson told the BBC the 3D gun was not a threat to public safety.
“I haven’t watched any crimes be committed with it,” he said.
“As far as I know only one person’s ever been arrested because of this gun and it was gentleman in Japan who was curious about making it.”
How was the printable gun developed?
The arguments began in 2013 when Mr Wilson, a self-styled crypto-anarchist, showed off the world’s first 3D-printed gun.
Files showing how to replicate the process were immediately made available on the Defense Distributed website and downloaded hundreds of thousands of times.
It led the US State Department to order them to be removed from the internet.
There followed a four-year legal battle, with Defense Distributed joining forces with the Second Amendment Foundation – which defends the right to own guns – to sue the State Department.
Last month, in a surprise move, it won its case, with the US Justice Department ruling that Americans may “access, discuss, use and reproduce” the technical data.
Mr Wilson hailed his victory as the beginning of “the age of the downloadable gun”.
But critics are concerned it will see a massive rise in so-called ghost guns, unregistered weapons the government is unaware of and is unable to trace.
Since the legal action began, Defense Distributed has been working on new gun designs and has also created a milling device – known as Ghost Gunner – that can turn parts purchased online into a fully working weapon.