PALM BEACH, Florida – Donald Trump was elected U.S. president, capping a remarkable comeback four years after he was voted out of the White House and ushering in a new American leadership likely to test democratic institutions at home and relations abroad.