New York Attorney General Letitia James found the utility enabled a pattern of discrimination and harassment against women and people of color.