Negotiators meeting in Poland have agreed a way forward on curbing deforestation.