Amid a global rightward shift, Mamdani’s progressive campaign offers a rare blueprint for the left to win.