A U.S. judge in Seattle has blocked the Trump administration from allowing a Texas company to post online plans for making untraceable 3D guns.

Nineteen states and the District of Columbia had sought an injunction to stop a settlement that the government had reached with Austin, Texas-based Defense Distributed.

The states argued that online access to the undetectable plastic guns would pose a security risk and could be acquired by felons or terrorists.

1 / 6In this Aug. 1, 2018, file photo, Cody Wilson, with Defense Distributed, holds a 3D-printed gun called the Liberator at his shop in Austin, Texas. A federal judge in Seattle is scheduled to hear arguments Tuesday, Aug. 21, 2018, on whether to block a settlement the U.S. State Department reached with a company that wants to post blueprints for printing 3D weapons on the internet. (AP Photo/Eric Gay)(Eric Gay / AP) 2 / 6Cody Wilson, owner of Defense Distributed company, holds a 3D printed gun, called the "Liberator", in his factory in Austin, Texas on August 1, 2018. A US gun rights advocate began gearing up for a legal fight Wednesday to be able to publish online blueprints for 3D-printed firearms, as the White House signaled support for a federal judge's decision to block the venture. Cody Wilson's Texas-based company Defense Distributed had briefly made the blueprints available online, but Seattle-based US District Judge Robert Lasnik granted an injunction Tuesday to take the material down.(KELLY WEST / Getty Images) 3 / 6Ben Chalker, who is in charge of manufacturing, shows a part of the blueprint on a computer in Wilson's factory in Austin, Texas on August 1, 2018. A US gun rights advocate began gearing up for a legal fight Wednesday to be able to publish online blueprints for 3D-printed firearms, as the White House signaled support for a federal judge's decision to block the venture. Cody Wilson's Texas-based company Defense Distributed had briefly made the blueprints available online, but Seattle-based US District Judge Robert Lasnik granted an injunction Tuesday to take the material down.(ERIC BARADAT / Getty Images) 4 / 6A 3D printed gun, called the "Liberator", is seen in a factory in Austin, Texas on August 1, 2018. A US gun rights advocate began gearing up for a legal fight Wednesday to be able to publish online blueprints for 3D-printed firearms, as the White House signaled support for a federal judge's decision to block the venture. Cody Wilson's Texas-based company Defense Distributed had briefly made the blueprints available online, but Seattle-based US District Judge Robert Lasnik granted an injunction Tuesday to take the material down.(KELLY WEST / Getty Images) 5 / 6J.C. Cotter installs an electronic package for a Ghost Gunner milling machine at the Defense Distributed factory in Austin, Texas on August 1, 2018. A US gun rights advocate began gearing up for a legal fight Wednesday to be able to publish online blueprints for 3D-printed firearms, as the White House signaled support for a federal judge's decision to block the venture. Cody Wilson's Texas-based company Defense Distributed had briefly made the blueprints available online, but Seattle-based US District Judge Robert Lasnik granted an injunction Tuesday to take the material down.(KELLY WEST / Getty Images) 6 / 6Cody Wilson, director of Defense Distributed, sits in his library behind the company's factory in Austin, Texas, on Aug. 5. MUST CREDIT: Photo for The Washington Post by Tamir Kalifa(Tamir Kalifa / For The Washington Post)

U.S. District Judge Robert Lasnik agreed Monday, saying the government's actions "not only impact national security but have domestic repercussions as well.

"The Court finds that the irreparable burdens on the private defendants' First Amendment rights are dwarfed by the irreparable harms the States are likely to suffer if the existing restrictions are withdrawn and that, overall, the public interest strongly supports maintaining the status quo through the pendency of this litigation," Lasnik wrote.

The State Department had reached the deal with the company after the agency removed the 3D gun-making plans from a list of weapons or technical data that are not allowed to be exported.