Two foreign-born men who claimed they were brutally tortured while held in CIA prisons and the family of one man who died in custody have settled their lawsuit against the two psychologists who developed the agency's program, bringing an end to what would have been a landmark case just weeks before trial.