The US president says Washington is 'hopefully toward the end' of Iran war, as global energy prices remain high.