The political education provided by Mamdani's campaign is an enduring legacy.