NZ prevail in rain-hit game