Disney’s and IBM’s attempt to take New York tax deductions on royalties received from foreign affiliates is “the biggest loophole” that could be created under a former tax statute, a New York high court judge said Wednesday during oral arguments in disputes involving both companies.