State settles legal challenge to home care transition