Elon Musk, who leads both companies, said the facility would supply chips for Tesla vehicles and SpaceX satellites.