In his Thursday ruling, Chief U.S. District Judge Royce C. Lamberth said the government's proposed measure would violate the prisoners' right to challenge their detainment, The Washington Post reported.
"Access to the courts means nothing without access to counsel," Lamberth wrote, adding the government's attempt "to supersede the court's authority is an illegitimate exercise in executive power."
The government was seeking to restrict lawyers' access to six detainees at Guantanamo Bay, as well as block them from obtaining key documents about their cases, CNN said. Four of those detainees had put their cases on hold, but wanted to maintain access to their lawyers, and the other two had already lost legal challenges to their imprisonments.
The new rules could have also led to "lengthy, needless and possibly oppressive delays" in the cases, the judge wrote.
Police: Sword-wielding man demanded free tacos
Puzzle-maker slips 'Murdoch Is Evil' into Rupert Murdoch's Sunday Telegraph