Following years of intense negotiations, nations have reached a landmark agreement to reduce greenhouse gas emissions from global shipping.