The deal seeks to resolve the tensions caused by the Northern Ireland protocol, a complex agreement which set the trading rules for the British-ruled region.