New York City Mayor-elect Zohran Mamdani’s campaign centered on the issue of affordability. That resonated with young voters.