The G.O.P. is on defense in the so-called “blue wall” states and beyond as gas prices remain high.