The shipping sector will, for the first time, have to monitor its carbon emissions under a law agreed by the European Union on Wednesday, intended as a step towards tackling a growing source of pol