EL PASO, Texas (KTSM) — Six immigrant women who say they are at risk of contracting COVID-19 due to their age and health were released from federal custody Wenesday after filing a lawsuit.

The lawsuit was filed against U.S. Immigration and Customs Enforcement last Friday, according to a story El Paso Matters first broke.

The lawsuit claimed the women were being kept at an El Paso immigrant detention center in close contact with people who had tested positive for COVID-19 at the detention center. The suit also claimed ICE did not take proper steps to ensure their safety, according to a news release from Borderland Immigration Council.

A hearing was scheduled for Tuesday before U.S. Judge Frank Montalvo, but an agreement was reached before the hearing. ICE agreed to release the women as long as they complied with ICE’s “alternatives to detention” program and went into quarantine, the release said.

The women are being released to the Annunciation House, which is prepared to help deal with their isolation to protect against the spread of COVID-19, the release said.