The Internal Revenue Service and the Treasury Department have issued final rules blocking certain states’ attempts