World leaders have begun congratulating Donald Trump on his projected win in the U.S. presidential election.