Agreement with union shrinks district's projected deficit