James G. McGovern, the head of the criminal division at the United States attorney’s office in Brooklyn, said he would join the law firm Hogan Lovells as a partner.