The campaign has been defined by affordability and economic issues that have spurred an expected turn toward Democrats by voters and created headwinds for Republicans.