Hochul had praised Mamdani after he won the mayoral primary in June, but had previously hedged on formally endorsing him.