Montana hospitals agree to help fund Medicaid expansion