US President Donald Trump says both sides agree to the first phase of his plan, which paves the way towards a ceasefire.