In the election, Oregon went for Hillary, not for Sanders, who was a write-in. Nationally, Hillary got a slim majority of the popular vote, less than 1% but more than .1% advantage. But of course, it's the electoral college that any presidential candidate has to win. When Trump won Florida and then Wisconsin, it was game over for Clinton. 

So in fact, two Republicans in a row have won the office while losing the popular vote, and both did it by winning Florida.