Mamdani-backed socialist with history of anti-American rhetoric wins vicious Dem primary race