You can claim the entire deduction because you paid it in 2012. If the termination order issued retroactively, you may have to include the refunded payments on your 2013 tax return.
THESE COMMENTS ARE NOT LEGAL ADVICE. They are provided for informational purposes only. Actual legal advice can only be provided after consultation by an attorney licensed in your jurisdiction. The answer to question does not create an attorney-client relationship or otherwise require further consultation. Mr. Smith is licensed to practice law throughout the state of California with offices in Los Angeles County. He is authorized to handle IRS matters throughout the United States, and is also licensed to practice before the United States Tax Court. His phone number is 323-292-4116 or his email address is firstname.lastname@example.org.