A federal judge in Washington State has extended a court order blocking a Texas-based company called Defense Distributed from posting designs for 3-D printed guns on the Internet.

U.S. District Judge Robert Lasnik previously issued a temporary restraining order blocking the designs; now, he has granted a preliminary injunction, which bars the designs from being posted online until a court case is resolved.

The Trump administration had recently decided to allow the release of the blueprints, in a settlement with Defense Distributed that the administration considered to be a international export matter. The states sued to challenge that decision, saying the change affected domestic policy too and the federal government did not follow the proper process for such a decision.

The states were granted the preliminary injunction they requested.

But the order is a bit like closing the barn door after the 3-D printed horse has already bolted, as Matt Largey of member station KUT notes: "Defense Distributed had posted the plans online for four days late last month. They were downloaded thousands of times and are being shared on other sites."

And, as the court order specifies, the files can still legally be "emailed, mailed, securely transmitted or otherwise published within the United States."

It's also legal for Americans tomake their own guns for personal use, as long as those guns set off metal detectors and show up on X-ray machines. If you're 3-D printing part of a gun and using metal components for other parts, as some designs call for, no law is violated

However, one of the Defense Distributed designs is virtually all-plastic, except for a metal firing pin. Critics say that design will allow illegal undetectable guns to proliferate. However, skeptics note that design is not very reliable compared to guns with metal parts.

Instead of focusing on how exactly the guns are made, the court battles over Defense Distributed have centered on export law, freedom of speech and proper procedures for changing federal policy.

The legal saga that stretches back years, as NPR's Vanessa Romo reported in late July.

The Obama administration had blocked the distribution of the blueprints, arguing that posting a blueprint for a 3-D printed gun online amounts to "exporting" the gun, because it can be downloaded by people outside the U.S.

Cody Wilson, the owner of Defense Distributed, said that posting the designs is a question of free speech, not of weapons exports. He also cited his Second Amendment rights.

Earlier this summer, the Trump Administration and Defense Distributed reached a settlement that allowed some designs to be posted online.

That prompted a new lawsuit by 19 states and the District of Columbia, filed against the State Department, alleging that the federal government did not provide enough warning about the change in policy. The states also say the government didn't provide a reasonable explanation for the change.

The State Department said the decision was strictly about exports, and therefore can't cause any harm to the states. The federal judge was not impressed by this argument, saying it "ignores reality and is wholly unpersuasive."

"The fact is that the internet is both domestic and international," Lasnik wrote. Allowing them to be posted online means Americans can download them, which could promote the proliferation of plastic guns, which could affect state governments as they try to enforce gun laws.

"It take virtually no imagination to perceive the direct connection," he wrote.

He also wasn't impressed with the State Department's argument that possessing a fully-plastic gun is already illegal and the law will be enforced.

"[I]t is of small comfort to know that, once an undetectable firearm has been used to kill a citizen of Delaware or Rhode Island or Vermont, the federal government will seek to prosecute a weapons charge in federal court while the state pursues a murder conviction in state court," he wrote.

In a tweet, Wilson, the founder of Defense Distributed, highlighted a portion of the order acknowledging it partially limited his freedom of speech, and wrote "FARCE."

Washington State Attorney General Bob Ferguson, who represented the states in asking for the injunction, criticized the Trump Administration for attempting to make the plans easier to access.

"Once again, I'm glad we put a stop to this dangerous policy," he wrote in a statement.

The U.S. State Department has not commented, Reuters writes.

Copyright 2018 NPR. To see more, visit http://www.npr.org/.