In a highly unusual reversal, the Supreme Court has agreed to review whether detainees at Guantanamo Bay can challenge their confinement in federal court by filing what is known as a writ of habeas corpus. Here, a guide to some of the legal issues involved.