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