Story highlights The terms of the settlement were not disclosed

The ACLU hailed the settlement Thursday as a "historic victory" for their clients

(CNN) 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.

The American Civil Liberties Union filed the lawsuit in 2015 against James Mitchell and Bruce Jessen, initially basing it on findings in the bombshell executive summary of the Senate "torture report," which put a spotlight on the CIA's use of enhanced interrogation techniques on suspected al Qaeda members in the years following the September 11, 2001 terrorist attacks. Mitchell and Jessen, along with other former CIA officials, were deposed and other declassified agency documents were eventually produced in the case.

In a court ruling earlier this month, US District Court Judge Justin Quackenbush denied the psychologists' attempt to dismiss the lawsuit, laying out the interrogation methods in vivid detail and citing extensive evidence against the doctors.

The lawsuit was filed on behalf of the family of Gul Rahman, an Afghan man who died while in CIA custody; Suleiman Abdullah Salim, a Tanzanian man who was held in US custody in Afghanistan for five years before being released; and Mohamed Ahmed Ben Soud, a Libyan man who was held by the US in Afghanistan from 2003 to 2005 before the CIA sent him to Libya, where Moammar Gadhafi's regime imprisoned him until 2011.

Read More