An undocumented 10-year-old girl who was placed in an immigration facility following surgery in Texas last week is set to be reunited with her family, a lawmaker’s office confirmed Friday.

Rosa Maria Hernandez, who has cerebral palsy and was detained by immigration officials after having gallbladder surgery, has lived in Texas since she was 3 months old. But she was thrust into federal custody – and the national spotlight – after she and her family were traveling from Laredo last week when they passed through a U.S. Border Patrol checkpoint. 

Agents escorted Rosa Maria to a Corpus Christi hospital after she and her cousin, a U.S. citizen, traveled through a checkpoint in Freer. The agents then waited until after Rosa Maria's gallbladder surgery and told her family she could return to Mexico voluntarily or go through court proceedings.

Among the lawmakers calling for her release was U.S. Rep. Joaquin Castro, D-San Antonio.

The Texas Tribune thanks its sponsors. Become one.

“Finally, Rosa Maria has been released to her family where she belongs,” Castro said in a statement. “This young girl and her loved ones have been through a traumatizing ordeal. I wish them the best, and hope Rosa Maria’s health improves."

But Castro added Hernandez’s supporters should know there’s an unknown road ahead for the child.

“While this is welcome news, Rosa Maria’s future remains uncertain. The Trump Administration has not made clear whether they will proceed with deportation proceedings against her,” he said.

A spokesperson for the U.S. Department of Health and Human Services’ Administration for Children and Families, which contracts with the immigrant shelters, was not immediately available for comment.

Rosa Maria's case made national headlines after activists and lawmakers said they were appalled at the news, calling it proof that the Trump administration wasn’t necessarily prioritizing its immigration enforcement enforcements on “bad hombres” intent on committing crimes.

The American Civil Liberties Union had filed a lawsuit this week calling for Rosa Maria’s release. 

"Rosa Maria should not have been detained for even a second. She was ripped from her family without authority by the federal government. We will continue to challenge the government to stop this kind of heartless and unlawful conduct,” said Andre Segura, legal director of the ACLU of Texas. 

Read related Tribune coverage:

  • More than a week after an undocumented teen under federal custody in Texas received an abortion, the Trump administration asked the U.S. Supreme Court to invalidate a lower court ruling that allowed the procedure to happen. [Full story]

  • U.S. Rep. Joaquin Castro, along with immigrant rights and civil liberty groups, is calling for the federal government to release an undocumented 10-year-old girl who was placed in an immigration facility following surgery. [Full story]

  • U.S. Customs and Border Protection will test border wall prototypes over the next two months, the agency said Thursday. Completion of the prototypes signals the Trump administration is making progress on one of the president's campaign promises. [Full story]

Never miss a moment in Texas politics with our daily newsletter.