Facing an urgent financial crisis, penny-pinching cities and states nationwide are eyeing dramatic reductions to their workforces, threatening critical public-sector employees and first responders at a time when many Americans may need their local governments’ help the most.