In a deposition taken in July, Bartov disclosed that he was being paid $1,350 an hour to work on the case. In court, he said he had now worked about 650 hours on the case, which would total $877,500.
Questioned by lawyers for New York’s attorney general, Bartov said the money had come from the Trump Organization and the former president’s political action committee, Save America.
https://www.reuters.com/world/us/can-trump-use-political-donations-pay-legal-defense-2023-08-01/
The law is tricky. It’s not explicitly against the law, as per the article.