General rule: expenses incurred for the production of income are deductible, fines and penalties are not.
Simple answer is make the lawyers fees after taxes in the initial pre-litigation agreement.If this was not done bring action against lawyer for hiding facts in initial negotiations.