Anadarko Petroleum Corp., partner of BP Plc in the Macondo well project that led to the Gulf of Mexico oil spill in 2010, won a ruling excluding evidence about its knowledge of the well’s operations from the first phase of a trial that begins Feb. 27.