To make the program politically palatable in a city dominated by Democrats, Congress has appropriated millions of dollars a year for the city’s traditional public schools and its growing set of public charter schools.