Court approves settlement in Medicaid funding case