Marathon Petroleum Co has agreed to cap the flaring of excess natural gas and implement efficiency controls on combustion devices to settle an emissions dispute with the Obama administration.