Attorneys general from New York and New Jersey filed a lawsuit against the U.S. Treasury Department on Wednesday challenging a decision by the federal agency to block a scheme developed by the state that would have allowed states and local taxes to be fully deductible as charitable contributions.

The complaint in the lawsuit alleged that the Internal Revenue Service violated federal law when it promulgated the new rule, which the suit called a “radical break with this historical precedent and practice.”