In October 2008 U.S. District Judge Ricardo Urbina ordered the release of 17 Uighur detainees from Guantanamo into the U.S. That of course never happen as the order was immediately appealed by the government. The DC Circuit ruled that only the President and Congress have jurisdiction over immigration matters, and attorneys for the detainees then appealed to the Supreme Court which agreed to hear what had now become a separation of powers case.
With some of the Uighur detainees, ethnic Chinese Muslims who feared persecution if returned to China, already resettled in other countries and the remaining soon to have new homes – see Saved by the Swiss – the Supreme Court chose to send the case back to the DC Circuit.
NYT story here.