The Supreme Court ruled Thursday that foreign terrorism suspects held at Guantanamo Bay have rights under the Constitution to challenge their detention in U.S. civilian courts.

In its third rebuke of the Bush administration’s treatment of prisoners, the Court ruled 5-4 that the government is violating the rights of prisoners being held indefinitely and without charges at the U.S. naval base in Cuba. The Court’s liberal justices were in the majority.