The top United Nations envoy to Haiti has congratulated the country on its successful holding of local , municipal and legislative elections .