A budget deficit and the politics of enrollment caps are making it harder for the mayor to fulfill his promise of smaller classes.