Canadian retailer Loblaw has reached an agreement with 8,500 striking workers in Alberta.