Countries reach historic deal to cut shipping emissions