Batteries are not a $30 trillion and 30 year problem, not even remotely close. Batteries are an order of a magnitude smaller of a problem.
We can build the Tesla S already. Musk is going to spend $5 billion building a plant that can produce 500,000+ car battery systems. We can already make effective battery systems for mainstream electric cars, the challenge now is to make them better and scale up manufacturing (which has already begun).
It costs $5 billion in the US just to build one major nuclear power plant.
I rarely see anybody discussing where the trillions of dollars in new spending is going to come from to boost energy supply and grid to handle 100 million electric cars in the US. It'll cost trillions just to maintain what we already have now over that time.