The agreement is the first of its kind struck by the US since President Donald Trump came to power in January.