Michigan, Enbridge reach deal to boost safety of pipelines