The Polish foreign ministry has praised the decision by Israel and Hamas to approve the first phase of a peace deal prepared by US President Donald Trump.