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