Shareholders of Anadarko Petroleum Corp on Thursday voted overwhelmingly to sell the company for $38 billion to rival Occidental Petroleum Corp , ending a short-lived contest that pitted two of the most storied names in the oil industry against one another.