Consumers scrambling to take advantage of expiring tax credits for electric cars drove a record-breaking quarter of U.S.