New Zealand Prime Minister Chris Luxon has accepted the resignation of his commerce minister, who touched a staff member during a heated discussion.