Whenever any law provides for the grant, subsidy, allocation or apportionment of State monies to a city, borough, town or township, the payment of which is conditioned on the matching thereof at any time within a period of more than one year by monies of such political subdivision, the political subdivision may accumulate the necessary monies during any such prescribed period. For such purpose, a city, borough, town or township may annually budget part of the necessary total sum as a current expenditure, may levy taxes to meet, inter alia, an expense so budgeted, and may appropriate such sum for accumulation from year to year within the prescribed period. No sum so budgeted or appropriated by a city, borough, town or township shall be transferred to any other fund, or used by the political subdivision for any other purpose.
53 P.S. § 5401