Torture is illegal,based on international & most national law;
"…the deliberate, systematic or wanton infliction of physical or mental suffering by one or more persons acting alone or on the orders of any authority, to force another person to yield information, to make a confession, or for any other reason."
Tokyo Declaration, 1975
There is no moral or ethical dilemma,the reason is immaterial,who does it is immaterial.