The dollar fell as oil prices retreated after President Trump suggested the war with Iran could soon end.