New Zealand has repealed its six-year ban on new offshore oil and gas exploration, a move aimed at enhancing energy security and attracting upstream investment following a period of declining gas production and increasing reliance on imported fuels.