WARSAW — Poland will abide by a European court ruling that ordered it to pay a total of $262,000 in reparations to two former inmates of a “black site” prison run by the C.I.A., the minister of foreign affairs said on Wednesday.

Image Abu Zubaydah, a terrorism suspect, is being held at the American military prison at Guantánamo Bay, Cuba Credit... U.S. Central Command, via Associated Press

“We have to do it,” the minister, Grzegorz Schetyna, said in an interview on the state-owned Polish Radio. “We are a law-abiding country.”

The European Court of Human Rights ruled in July that Poland had violated the rights of the two terrorism suspects by handing them over to the C.I.A. in 2002 at a secret facility, which is now closed, in northeast Poland. While there, the court said, the men suffered “torture and inhuman or degrading treatment.”