President Donald Trump's defence of torture has set a precedent for other countries to follow, even if the US does not act on it, a UN official says.