Hungarian voters ousted longtime Prime Minister Viktor Orbán, who was a close ally of Russian President Vladimir Putin, from power for Péter Magyar.