ALBANY — Gov. Andrew M. Cuomo and legislative leaders announced on Saturday an agreement on a state budget that would provide $300 million for prekindergarten in New York City, but also undercuts other educational policies of Mayor Bill de Blasio, who has championed prekindergarten while trying to slow the spread of charter schools.

