In retrospect, that was not a very smart thing to do.
The smart play would have been to pocket the legal win—no more indictments—and then try to rise above the controversy. The president could have given a speech analogous to the one President Ronald Reagan gave after being absolved of direct personal responsibility for Iran-Contra: Acknowledge mistakes, apologize for them, vow that lessons would be learned. Condemn the Russian interference in 2016, and vow to harden future U.S. elections against any repeat. Meet critics more than halfway, move forward, try to consign the controversy to the past.