Williams to stay on as UN envoy