"I was just following orders" has already been established as an insufficient defense in the 1946 Nuremberg trials and essentially all later trials against WW 2 war criminals. It is by now pretty well established that crimes against humanity in general and torture in particular are not justifiable.