A document that James Naismith penned the original rules of basketball in 1891 was sold for more than $4 million at a Sotheby auction to raise money for charity.