Tesla Inc. will spend “well over” $1 billion by the end of next year on building an in-house supercomputer known as Project Dojo.