The New York mayor-elect's unexpected victory has energized the European left, with politicians casting themselves as their country's version of Mamdani, and strategists eager to study how he won.