A federal judge has dismissed the ACLU’s attempt to block the government from delegating the care of immigrant unaccompanied minors and sex-trafficking victims to a Catholic group that opposes birth control and abortion and transfers those wishing to have an abortion to other shelters.

The American Civil Liberties Union of Northern California filed the lawsuit against the secretary of Health and Human Services and the U.S. Conference of Catholic Bishops, alleging violation of the U.S. Constitution’s Establishment Clause: “Congress shall make no law respecting an establishment of religion or prohibiting the free exercise thereof.”