Venezuela confirmed the 'historic' agreement shortly after the US president's announcement.