County agrees to pay $3 million to settle lawsuits filed by former foster children