Mayor Zohran Mamdani of New York said he hoped to reach communities that had been left out of the process.