It's grift. He's already sending out fundraising emails for the lawsuit.
Ha, good point. Since his accountant got charged just recently, I guess the fundraiser will say "Donate to my legal costs" and won't specify that it's not just (or even) to pay lawyers to fight the tech companies, but actually to pay lawyers to defend himself against the NY lawsuits.
His fundraising isn't even that restricted; it goes into a super PAC that can use the money for essentially anything: legal costs, future campaigns, transfers to other politicians he likes. He can even pay himself or family or cronies a salary out of it if he wants, and maybe he'll have to do that when the Trump Organization runs into a wall because it can no longer finance its debts.
You've just described the job description of "politician" ;)