Canadian pipeline operator Enbridge Inc (ENB.TO) has agreed to pay $177 million in penalties and improved safety measures in a settlement with the U.S.