The New York Court of Appeals said in a decision Tuesday that the New York City Department of Education cannot place conditions on state funding for prekindergarten programs at charter schools, which the city attempted to do in 2015.

The court affirmed a decision from the Appellate Division, which ruled that an interpretation of the 2014 state law expanding universal pre-K gives charter entities—rather than local school districts—almost exclusive oversight of those programs at charter schools.