Lawyers I trust (who aren't Trump fans) say that he didn't, and that the case was ridiculous on multiple fronts. Lawyers like Glenn Greenwald, Jonathan Turley, Alan Dershowitz (not that I don't think he is an asshole in other regards). Dershowitz said this case will change the justice system forever, that now it will be used as a political tool to bring suits where no crime was committed as a way to punish political dissidents. The weaponization of the legal system is complete.
I don't think there is a mechanism to undo this damage other than amending the constitution, which won't happen for many good reasons.