Iowa and children's rights advocates have reached a preliminary agreement in a class-action lawsuit filed against state officials. A judge is expected to issue a final approval in May.