Snubbing a bipartisan pandemic relief deal and initially downplaying inflation led to the Democratic downfall.