He needed to pass on the third try to keep his job at the Manhattan District Attorney’s office.