The European Union and Canada reached a free-trade agreement on Friday, after more than four years of negotiations.