Nissan is investing more than $17 billion in an effort to improve battery designs and production costs.