Ports are spending millions to prepare for a new European Union border IT system amid travel delay warnings.