Firefighters, teachers face smaller retirement safety net