The changes will cut about $1 trillion from federal Medicaid spending over 10 years.