New Zealand’s leader says she has a “sense of relief” as her party prepares to anoint a successor.