State backs off policy that removed more than 1,700 ex-foster kids from Medicaid