Whenever in any proceeding before any administrative tribunal or any court of this State or of the United States it shall be determined that any county tax assessed or allocated to any taxing district is unconstitutional or illegal, in whole or in part, or is excessive or inadequate for other reasons, such local taxing district shall be debited or credited as the case may be, on the county taxes next due, with the difference between the amount which it has paid and the amount ultimately determined as said taxing district's lawful share of county taxes.
N.J.S. § 54:4B-2