The International Maritime Organization, a United Nations agency that regulates global shipping, is writing new rules to curb greenhouse gas emissions from ships by 2050 as it implements other regulations that will mandate cleaner-burning fuels at sea by 2020.