State budget: Ridgefield spared major cuts as deficit looms