The Globe and Mail’s union has reached a deal with the Toronto newspaper