DETROIT — With the financial pain of the global microchip shortage largely behind them, General Motors and Ford Motor Co. are racing to become leaders in electric vehicles even faster than planned with the help of growing profits from their internal combustion vehicles.