Bonn meeting ends with last-minute compromise on Paris climate text