A pipeline company that dumped 40,000 gallons of gasoline into a Walnut Creek waterway in 2020 agreed to pay a penalty in a settlement with the U.S. EPA.