If your goal is ideal world you must for a while be non-ideal to survive until you reach closer and closer to that ideal state. Which I would say we are doing currently.
These are bad actions but for "the greater good"? You don't get to have it both ways. Protecting yourself without torturing people is 100% feasible and your argument should only be heard in a war crimes tribunal from the defendant'a lawyer to ease their sentence.
Morality isn't hard, but the implementation can be.