President Donald Trump has been scornful of electric cars for years. But his administration is now pouring billions of dollars into the battery technology that powers them.