Two top prosecutors overseeing the Manhattan district attorney’s investigation into Trump and his company resigned amid doubts about the case’s future.