Settlement reached in custody case