Supreme Court to grapple with murky legal rights of immigration detainees