Seeking to put the nation back in the lead on an important technology, the Obama administration awarded more than $2 billion in grants on Wednesday for manufacturing advanced batteries and other components for electric cars.