He is an Officer of the Court and this matter, even though it was outside the trial, was directly related to his position as an officer of the court.
Lawyers are not officers of the court when they are representing clients. They are independent agents acting on behalf of their clients. The USSC has stated exactly that.