Elon Musk’s decision to assemble Tesla Inc. cars in China required years of planning and billions of dollars in spending. Now comes the challenging part. The electric Model 3 sedans rolling off the assembly line at Tesla’s Shanghai plant — its first outside the U.S. — face a market where total vehicle sales are expected