When any judgment has been rendered which requires the apportionment from the State School Fund to any school district, to any other agency, or to any fund for any fiscal year of more than the amount actually apportioned thereto during that fiscal year, the difference shall be apportioned to the district, agency, or fund by the Superintendent of Public Instruction from the State School Fund during the fiscal year following that in which the judgment becomes final before any other apportionment from the State School Fund is made. Upon the becoming final of any judgment which requires the apportionment from the State School Fund to any school district, to any other agency, or to any fund for any fiscal year of less than the amount actually apportioned thereto during any fiscal year, the difference shall be deducted from the apportionment made to that district, agency, or fund by the Superintendent of Public Instruction from the State School Fund during the fiscal year following that in which the judgment becomes final.