The European Court of Human Rights ruled Tuesday that Lithuania must pay 30,000 euros in damages to Saudi national Abd Al-Rahim Hussein Al-Nashiri over his unlawful detention at a suspected CIA secret prison in the country two decades ago.

The Strasbourg-based court also ordered Lithuania to pay 10,000 euros to cover the applicant’s legal costs.

The court found that Al-Nashiri was held for more than five months at a classified CIA facility in Lithuania and that Lithuanian authorities enabled his transfer out of the country despite the risk that he would face a flagrant denial of justice and the death penalty in the United States.

According to the ruling, Al-Nashiri was held in complete isolation from the outside world, in solitary confinement and without contact with his family.

The judgment is not yet final and may be referred to the court’s Grand Chamber within three months. Al-Nashiri had sought 100,000 euros in nonpecuniary damages.