Keepening shortages of key auto parts such as microchips and seat foam are combining with packed ports and a cargo crunch to shut down auto assembly lines — even as dealers clamor for inventory to meet strong demand from increasingly confident consumers.