Mamdani's tenure will be judged on both his legislative wins and his movement-building.