Economic pessimism about inflation and recession chips away at the Democrats’ midterm hopes