Republicans in battleground states are largely sticking by the president's war — but they’re finding it harder to brush off the consequences.