New Zealand's justice minister resigns after car crash