It was an unpleasant moment for the Obama administration.

On 24 September, Brazilian President Dilma Rousseff, who had been arrested and tortured by her country’s military rulers in the 1970s, stood before the United Nations and blasted the US government’s endless appetite for digital surveillance.