Missouri works to settle lawsuit on medicine for foster kids