A federal judge in Manhattan has allowed a lawsuit against Immigration and Customs Enforcement to proceed over claims the agency was negligent in not providing a person in custody with proper medical care at discharge, resulting in a mental health emergency that required months of intense medical treatment.

Michelet Charles, a lawful permanent resident, claims to have been diagnosed with bipolar and schizoaffective disorders for the past 35 years. Medication and other treatments helped him manage his mental health issues for years, allowing him to work, have a family, and participate in society in general, according to court filings.