Ursula von der Leyen has been re-elected as President of the European Commission in a critical vote on Thursday.