Trump won the election based on the US system.  Clearly he knew how the system worked and put his efforts into winning the states with the electoral college votes.
I might remind you that Trudeau also "lost" the election by getting just over 40% of the popular vote, i.e. over 50% voted against him, but he is prime minister because of our system.;