What you’ll find around here is that everyone will agree that torture is wrong and an intrinsic evil. You can’t argue that. But there is this loophole, where some will argue that what you describe above is not torture. Now, if you probe the people who makes this claim, you may come to different conclusions about their sincerity when they use this loophole.
Some probably do believe that they are correctly using prudential judgement, which is a certain freedom that the Church allows for an individual to use his/her conscience to decide whether or not it is truly evil, that this is not torture. On the other hand, you may find that many use it as a ‘get out of jail free’ card, where they likely know in their hearts it is evil, but refuses to acknowledge because it undermines their political beliefs. These are often the same people that speak with an absolutism that make you wonder if they have a well-formed conscience and a sound mind and are capable of using prudential judgement.