Volkswagen and the Justice Department are nearing a deal to resolve criminal and civil allegations over the German automaker's diesel cheating.