The global microchip shortage has thrown a wrench into most automakers’ production plans, forcing shoppers to navigate sparse inventory on dealer lots and longer wait times for new-vehicle orders.