The US president said the text of the agreement will be published "probably pretty soon"