Taxpayers spent $15 million on research to build a breakthrough battery. Then the U.S. government gave it to China.