Rival politicians reach 'consensus', says UN envoy