The US ambassador to the United Nations will take up the role on January 1, filling a vacancy that has remained open for months.