The US says it brokered the “historic agreement” between the two nations, which are formally at war.