Tesla is shifting its investments away from passenger vehicles to focus on autonomy, robotaxis and large-scale production of humanoid robots.