Trump comes from behind to win US presidency