The resignation of the prosecutor, Denise Cheung, comes at a turbulent moment at the Justice Department, as President Trump and his appointees seek to exert control over law enforcement actions.