Toyota could deploy 400,000 robots in a $6.4 billion modernization push designed to preserve worker expertise and improve global factory operations.