The agreement was announced just hours after the presidents of the US and South Korea met to discuss tariffs.