In November , a lawyer for Mamdouh Habib , a prisoner who claimed he had been tortured in Egypt before being transferred to Guantanamo , asked a federal district court to stop the Bush administration from returning him to Egypt .