Mamdani secures power in NY Democrats