Consumers rushed to buy EVs to beat the threat of having the tax credit repealed.