Ursula von der Leyen has been re-elected as president of the European Commission in a make-or-break vote on Thursday that represented the single greatest test of her political legacy, forged across a succession of crises that have rattled the bloc’s foundations.