Donald Trump legally became the president as a result of events in 2016, and he was legally inaugurated. But he wasn’t elected by the American people.