The deal was announced just hours after the presidents of the US and South Korea met in Washington.