The reversal is especially jarring in statehouses dominated by conservative Republicans, who aggressively cut welfare programs but now find themselves caught in a crosscurrent of pressures involving gun control, public safety and health care for millions of disadvantaged Americans.