Toyota Motor Corp., which operates a large North American research and development center in Ann Arbor, says it will grant royalty-free licenses for nearly 24,000 patents it holds for electric vehicle technologies.