Mamdani won by a modest margin in a deeply blue city not because of his radical commitments, but despite them.