Again, the article is inaccurate in that only one claim of a multi-claim lawsuit was dismissed. The meat of the lawsuit is the NDA. And Trump has a real problem because he filed that lawsuit in bad faith. At first, he claimed it wasn't him that filed the lawsuit and that he knew nothing about it. In fact, we now know Trump instructed his son Eric to file the lawsuit. Now Trump argues that the whole NDA was invalid all the time because he never signed it. Meaning Trump filed what he knew was a bad faith lawsuit to silence someone by his own admission he had no right to silence or worse yet to conceal the criminal act that Cohen fingered him for under oath which means Trump will likely have to pay fees to her for the larger part of the lawsuit.
I am also not so sure the dismissal of the one claim will stand on appeal. The Judge in his reasoning cited a new and novel legal theory that the President can't be held to account for his defamatory statements because of his office. There is no existing case law that supports this novel theory and in fact, the closest you have is Clinton v. Jones which said the exact opposite. Common sense tells you that the President should be held to a higher standard, not a lower one. The Judge, in this case, was a conservative. Once it makes to the appeals court, it will be heard by largely liberal justices.
Besides, all she has to do to get rid of the fees is file bankruptcy. The most profitable part of her business is based on all cash transactions.