The conventional wisdom after 2012 held that Mr. Obama was a historically weak candidate among white working-class voters, and that there wasn’t much room for the Republicans to make additional gains.