Zohran Mamdani motivated voters to head for the polls, using a broad coalition of supporters to overcome Andrew Cuomo’s success in siphoning Republican votes.