The rise of Mamdani is part of a broader global trend of resurgent left-wing politics.