Trump’s victory is part of a rightward trend in democracies across the world.