The charges resulted in the resignation of a top federal prosecutor, who accused him of making a deal with the Trump administration.