The funds will be used for the development of four 'gigafactories' with 100,000 state-of-the-art chips, among other projects.