Any other law or laws to the contrary notwithstanding, a state entity which receives state tax receipts which are designated for a particular purpose may in addition to the designated purpose expend those funds for other functions within the entity in order to offset the reduction in other funding for any given year. The flexibility provided by this section shall not apply to funds which are constitutionally dedicated for a specific purpose or to Medicaid provider taxes from hospitals, nursing homes, and pharmacies and Medicaid intergovernmental transfers from public hospitals and public nursing homes, or to funds otherwise designated by the federal government or state or federal court order, or to portions of a state-levied tax that are distributed directly to counties.