World leaders congratulated Republican Donald Trump on Wednesday after he won the U.S. presidential election, capping a stunning political comeback four years after he left the White House.