John McDonnell says Labour will reject a customs arrangement with the EU unless it is established on a permanent basis.