Mamdani’s victory was rooted in organizations that took up the base-building and mobilization functions that once fell to parties.