Yvette Cooper could face legal action over the decision to keep an asylum seeker with schizophrenia in prison.
The high court has ordered the home secretary to release the 25-year-old man by 8 September, and the Home Office may have to pay him damages for breaching his human rights.