The Oklahoma Supreme Court on Tuesday stopped what would have been the first publicly funded religious charter school in the U.S., turning back conservatives and the state’s GOP governor who have welcomed religious groups into public education.

The high court determined the Statewide Virtual Charter School Board’s 3-2 vote last year to approve an application by the Catholic Archdiocese of Oklahoma for the St. Isidore of Seville Virtual Charter School violates the Establishment Clause, which prohibits government from making any law “respecting an establishment of religion.” The ruling also says both the Oklahoma and U.S. constitutions, as well as state law, were violated.