In the event a final judgment is rendered in favor of the taxpayer in a suit to recover illegal taxes, and provided the taxpayer is not otherwise indebted to the state, it shall be the duty of the state auditor, upon receipt of a certified copy of the final judgment, to issue a warrant directed to the state treasurer, in favor of the taxpayer, to pay the part of the illegal tax as was paid into the state treasury, and to certify to the treasurer of any municipality, county or other taxing authority as to the amount of the illegal taxes paid to such municipality, county, or other taxing authority having received any part of the illegal tax, who is required hereby to refund the amount of such taxes certified by the auditor, included in the amount for which the judgment was rendered in favor of the taxpayer.
If any municipality, county or other taxing authority, having received any part of taxes for the recovery of which such judgment is rendered, is unable, unwilling or otherwise fails or refuses to make refund of the amount certified by the state auditor to be due such taxpayer, then the commissioner is hereby authorized to withhold from such municipality, county, or other taxing authority, sufficient funds from any subsequent amount which may be due to such municipality, county, or other taxing authority, to cover the amount not refunded to the taxpayer. Any such amount so withheld shall be paid into the state treasury and a warrant issued by the state auditor against such fund in payment of the balance due under the judgment rendered in favor of the taxpayer for such taxes.