As year comes to an end, Trump’s resurgence reveals voting trends that could define US politics in the years ahead.