Mamdani allies win NYC primaries