ex-NYPD cops to avoid trial