Small towns are in for a sobering stretch of economic challenges as elected officials reverse pandemic-era policies that had been reviving them.