A federal judge ruled that Trump's $10 billion lawsuit against the IRS was filed for an "improper purpose".
The court said it misused the courts to legitimise a settlement granting him immunity from tax audits.
While the judge did not void the settlement, she ruled the government cannot claim it resulted from a legitimate legal process.
