Tesla plans a massive chip plant to support its AI and robotics goals, marking a push for supply-chain independence.