Notwithstanding any other provision of law, mitigation funding shall be distributed to any local education agency, or any city, county, or city and county as a result of the construction of new permanent prison housing facilities, the activation of temporary beds as part of the Emergency Bed Program authorized by the Budget Acts of 1995 and 1996, and any future emergency bed expansions by the Department of Corrections if funds for that purpose are appropriated to the department in the annual Budget Act or any other act approved by the
Legislature.