Mr. Heastie, the speaker of the New York State Assembly, is one of several prominent Democrats who had resisted backing Zohran Mamdani, the party’s nominee for New York City mayor.
Andrew M. Cuomo, who has faced criticism for bypassing mosques as he seeks to become mayor, spoke of New York as a beacon of opportunity during an appearance in the Bronx.