Carmakers may need several years to revamp their supply chains to meet new rules, but the legislation is still seen as a win for electric vehicles.
There has been a surge in the sales of cars that can travel short distances on just electricity and have a gasoline engine for longer trips.
The automaker reaffirmed its forecast for earnings for the full year.
The loan will help the automaker and its supplier build electric vehicle battery factories in Ohio, Tennessee and Michigan.
A scarcity of semiconductors and raw materials held back production, but buyers remain enthusiastic.
Automakers and technology companies say they are making driving safer, but verifying these claims is difficult.
The General Motors chief says efficiencies, innovations and learning from mistakes will allow her company to become a leader in electric vehicles.
The automaker reported an 11 percent jump in revenue for the first three months of the year compared with a year earlier.
The electric carmaker maintained its momentum from last year even as larger automakers continue to struggle with parts shortages.
The company struggled to produce vehicles in the first three months of the year, a sign that shortages could last longer than executives had hoped.