States that slash spending to make it through an economic crisis can end up worsening income inequality for years, finds new research.