The Supreme Court on Thursday rejected the latest effort by the Bush administration and Congress to deny Guantanamo detainees the right to appeal their imprisonment in U.S. courts.

In a dramatic decision in Boumediene v. Bush that divided the Court 5-4, the justices struck down parts of the 2006 Military Commissions Act that stripped U.S. courts of jurisdiction over the habeas petitions filed by foreign nationals detained at the Guantanamo Bay facility in Cuba. The ruling ordered swift habeas hearings for the detainees.