NEW YORK – New York City and Success Academy have reached a compromise, following Mayor Bill de Blasio’s controversial decision to revoke several co-location agreements that would have allowed the successful charter school chain to locate in public school buildings.

Success Academy founder Eva Moskowitz said she was “deeply grateful” to settle the dispute with de Blasio and “heartened we’ve been able to put politics behind us and establish a positive working relationship,” the New York Post reports.

As part of the deal, the city will pay for the rent for three Success Academy schools to move into abandoned catholic school buildings in the city, rather than share space with traditional public schools.

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

Success Academy City Hall will move into the former Mother Cabrini High School in Washington Heights; a Success school that was slated to go to Harlem will now take over the former Catholic Annunciation School in Morningside Heights; and a third school that would have been in Jamaica is now going to St. Pius X School in Rosedale next school year, according to the post.

The agreement comes about two months after de Blasio revoked co-location agreements previously approved by the Bloomberg administration for the three Success Academy charter schools. The co-location agreements, which allow charter schools to share space in underutilized public school buildings, are critical because of New York City’s sky-high real estate market.

Success Academy schools are among the highest performing schools in the state, but are viewed by the United Federation of Teachers (the city’s teachers union) as the mortal enemy because they attract students and don’t employ union teachers.

One might think a professional teachers’ organization would applaud any type of school that provides quality instruction to students, but that’s just not the case.

The UFT helped to elect de Blasio, and de Blasio helped the UFT attack Success Academy. But his decision to nix the co-locations set off a firestorm of protest, and drew criticism from New York Gov. Andrew Cuomo.

That criticism clearly convinced the mayor to compromise and find homes for the Success schools.

MORE NEWS: Know These Before Moving From Cyprus To The UK

His motives may have been purely political, but who cares? The kids are the winners for once, which is very rare in New York City.