Hiring freeze helps city trim projected deficit