At Sotheby’s first sale in its new headquarters, it became the priciest work of modern art ever sold at auction.