Enbridge Energy Partners LLP has agreed to replace close to 300 miles of one of its pipelines and pay for any remaining cleanup stemming from two oil spills in 2010, including one of the worst inland spills in U.S. history, U.S. Environmental Protection Agency officials say.