An in-home care service for older people and people with disabilities has been sold by the government to a private company.