The agency violated IRS Code 6103, one of the strictest confidentiality laws in federal statute, the judge ruled.