While the judge only has access to punish the trial attorney in the case, rest assured there were higher ups in the command who will need to be prosecuted along with the trial attorney. Where did the trial attorney get the ‘bugs’? It is not likely he had the expertise to design the bug which would have required coordination with the IT department and highly unlikely he sent the bugs to the defense counsel team and the Navy Times without higher approval.
It was the NCIS who suggested and carried out the email bug thing, I believe.