WASHINGTON—President Barack Obama hoped the midterm elections would help break the capital’s gridlock. Instead, they became a referendum on his presidency.

Voters went to the polls Tuesday deeply frustrated with the political system and handed Republicans a decisive victory. Mr. Obama was a central figure in key races where Republicans criticized his leadership.

Most...