As a rule, though, people are self interested. Trump came out explicitly saying he was going to save rust belt jobs in decline (automotive, coal), which is exactly that they wanted to hear. A lot of people in Michigan and Wisconsin who have voted Obama twice (and probably Kerry and Gore before that) voted Trump, and basically said "yeah, he's a deplorable human being...but at least he'll fight to save my job."
Of course, what that does is it legitimizes those who did vote for Trump because their anti-progressive policies line up with Trump's views. They can now boldly claim that the majority of the country agrees that should ban all Muslims, that they're okay with the objectification of women - when in fact, a lot of people in those swing states particularly didn't like those things, but held their noses and voted for Trump just because they wanted to keep their jobs, lower taxes, etc.
On top of which, looking at the exit polls, the majority of people who voted Trump are white men. They don't really concern themselves with him being a racist or sexist because it doesn't affect them personally.