You may be able to deduct attorney fees and court costs paid to recover a judgment or settlement for a claim of unlawful discrimination.
Per IRS Publication 525 Taxable and Nontaxable Income, page 30:
Deduction for costs involved in unlawful discrimination suits. You may be able to deduct attorney fees and court costs paid to recover a judgment or settlement for a claim of unlawful discrimination under various provisions of federal, state, and local law listed in section 62(e), a claim against the U.S. Government, or a claim under section 1862(b)(3)(A) of the Social Security Act. You can claim this deduction as an adjustment to income on Schedule 1 (Form 1040 or 1040-SR), line 22. The following rules apply.
To enter this information into the TaxAct® program: