A judge has disqualified a federal prosecutor from overseeing investigations into New York Attorney General Letitia James.