The US president said the two sides were 'close' to a peace deal to end the war that has engulfed the Middle East.