Four states slip from surplus to deficit due to welfare spending