Goldman Sachs Chief Executive Lloyd Blankfein was interviewed under oath last week as a witness in the insider-trading case of Rajat Gupta, a former Goldman director and onetime global head of McKinsey & Co, according to court documents filed on Friday.