Deduct attorneys fees

I received a judgement settlement in 2017. I did not write off attorneys fees in the year the judgement was awarded because there were many appeals. Can I file an amended return to write them off in the year they occurred and am I limited in what amount I can write off? In other words, can I write off more than I recovered?