A federal judge in the District on Friday rejected a Guantanamo Bay detainee’s bid to modify the way he was force-fed during his periodic hunger strikes, writing that prison officials had not shown “deliberate indifference” in the way they treated the longtime prisoner.

The ruling by U.S. District Judge Gladys Kessler — a wholesale win for the U.S. government — means that military officials can continue force-feeding Abu Wa’el Dhiab, 43, exactly as they had been. His attorneys had compared the force-feedings to torture, and one said Friday he was “absolutely stunned” by the judge’s decision.

“Judge Kessler’s decision is the green light to continued abuse of the hunger-striking detainees,” said the attorney, Jon B. Eisenberg. “She has told the government that they can treat detainees however they wish and the courts will not interfere.”

A Justice Department spokeswoman declined to comment.

Also on Friday, Kessler agreed to put on hold her order that the U.S. government release redacted videos of the force-feedings until Dec. 2 as Justice Department attorneys decide whether they want to appeal.

Dhiab was arrested in Pakistan in 2002 and has been detained since without any charges against him. He was suing not to stop the force-feedings altogether but to make less harsh the way they were carried out.

Dhiab wanted a doctor, rather than a prison official, to determine when he should be force-fed. He wanted to be taken to the feedings in a wheelchair, and he wanted the feedings to be conducted using a one-point, rather than a five-point, restraint. He also wanted the feeding tube to be left in for three days at a time to reduce the frequency with which it was inserted and removed from his nose.

Kessler rejected every request — although she noted and criticized the fact that military officials had allowed Dhiab to use a wheelchair just before his case went to court.

“Had that simple step been taken,” she said, “numerous painful and humiliating forced cell extractions could have been avoided.”

Dhiab has been cleared for release from the U.S. detention facility in Cuba since 2009, and government officials have even identified a possible spot for his resettlement.

In her ruling, Kessler wrote, “one can only hope that that release will take place shortly.”