(FOX NEWS) Advocates for a pregnant 17-year-old girl held in a Texas facility for immigrant children who have crossed the border alone are asking a federal judge to allow her to get an abortion, over the opposition of U.S. and state officials.

A federal magistrate judge in San Francisco has scheduled a hearing Wednesday on a request filed by the American Civil Liberties Union of Northern California, which accuses the U.S. Department of Health and Human Services of refusing to let the girl be taken for the procedure.

Rochelle Garza, a lawyer appointed to represent the girl’s legal interests, told The Associated Press on Tuesday that the teen may be up to 14 weeks pregnant. Texas state law prohibits most abortions after 20 weeks.

Note: Read our discussion guidelines before commenting.