The city comptroller is considered to be a major force in helping Mamdani capture the mayor’s office this year.