A bag containing traces of moon dust has sold for $1.8 million at a Sotheby's auction.