Zohran Mamdani, the front-runner in the New York City mayor’s race, would make some public benefits available to everyone.