If state funds appropriated by the Legislature or otherwise made available by statute are insufficient to fully fund the Uniform Millage Assistance Grant Program, the Second Level Funding Program and the Emergency Fund Loss Assistance Program in any year, then any state funds made available for such programs shall be allocated by appropriation to each program in an aggregate amount which shall not exceed the total amount of state funds available.