But Mr. Warden said the government could prove that Mr. Mohamed was being properly held without evidence of that plot. Military prosecutors have said they will file new charges against Mr. Mohamed with the Guantánamo war crimes tribunal, but they have not said whether the bomb plot will be among those charges.

The government claims Mr. Mohamed confessed to the plot and to attending Qaeda training camps.

But Zachary Katznelson, a lawyer for Mr. Mohamed, said in court Thursday that all his confessions were made after “he was tortured again and again and again until he just parroted what his torturers wanted him to say.” In Morocco, Mr. Katznelson said, Mr. Mohamed was beaten and repeatedly cut with razor blades on his genitals and elsewhere.

Mr. Mohamed’s lawyers have laid out a detailed argument that he was subjected to the government’s program of rendition to other countries. They say evidence shows that American intelligence agents transferred him to Morocco.

The documents Judge Sullivan directed the government to turn over concern Mr. Mohamed’s treatment during the two years he was held in Pakistan, Morocco and Afghanistan after he was first detained at the airport in Karachi, Pakistan, in 2002. Mr. Katznelson said evidence of torture would prove that Mr. Mohamed had never voluntarily admitted to the dirty-bomb plot or any other involvement with Al Qaeda.

The government has said Mr. Mohamed’s claims of torture are not credible. A Moroccan consular official, Karim el-Mansouri, said in an interview that he had no details on Mr. Mohamed’s case but that Morocco protected human rights. Paul Gimigliano, a spokesman for the Central Intelligence Agency, said: “The C.I.A. does not conduct or condone torture. Nor does it transport individuals anywhere for the purpose of torture.”

Last week, a British court ruled that 35 documents in British intelligence files concerning Mr. Mohamed’s treatment should be turned over to his lawyers. The court said the documentation “lends some support to his claim that the confession was obtained after a period of two years incommunicado detention during which he was tortured.”

The material Judge Sullivan has now ordered the government to turn over would be any additional information about Mr. Mohamed’s treatment.

The British court had said it would wait to order the actual release of the 35 documents, to give Judge Sullivan an opportunity to rule on the issue first. By the time they arrived in court Thursday, however, Justice Department lawyers had turned over those documents. That followed a letter Tuesday from a British government lawyer to the British court’s judges that said the home secretary had referred to law enforcement officials in Britain “the question of possible criminal wrongdoing” in the treatment of Mr. Mohamed.