@raphjd Trump hasn't won the lawsuit yet. Two questions were presented to the appeals court: (1) Was Trump a federal employee at the time he made the alleged defamatory statements; and (2) Did he make the alleged defamatory statements within the scope of his employment (i.e., was he speaking as the President or as Donald Trump).
The 2d Circuit Court of Appeals only answered the first question, finding that the president is a federal employee (this was no surprise as it had already been established). But it didn't render a decision on the second question. It certified that question to the District of Columbia Court of Appeals for determination if Trump was speaking as President or as Donald Trump.
If he was speaking as President, then it's likely that the court will grant the DOJ's request to substitute the Federal Government as party instead of Trump. The defamation will likely then be dismissed pursuant to a Rule 12(b)(6) motion for failure to state a claim upon which relief can be granted.
However, it's my understanding that E Jean Carroll is still going to bring her civil rape case against Trump. This was just a defamation case alleging that him calling her a liar defamed her. No court yet has tried the issue of whether he did or did not rape her in the mid-90's.