The friendly deal comes four years after Lowe’s was unsuccessful in a hostile bid to expand in Canada by buying Rona.