In "Rasul v Bush" (2004), the Supreme Court held that the detainees had the right to counsel and to challenge their detentions at an impartial tribunal, according to "habeas corpus". On June 29, 2006, the U.S. Supreme Court ruled in "Hamdan v. Rumsfeld" that they had the minimal protection of in that detainees must be housed and treated humanely, and that they had the right to an impartial tribunal to hear charges against them. It said the military tribunals as established by the Dept. of Defense did not have sufficient authority, and Congress needed to authorize any system outside the established US civil and military justice systems.