The roughly $1 trillion infrastructure package passed by Congress on Friday provides a spark to efforts to build a national network of electric-vehicle charging stations.

The bipartisan measure touches on nearly every aspect of the electric-vehicle industry and eclipses previous efforts in the U.S. It also includes funding to help transform the nation’s aging electric grid by upgrading high-voltage transmission lines and other infrastructure set to become even more crucial as the country electrifies more of its transportation...

The roughly $1 trillion infrastructure package passed by Congress on Friday provides a spark to efforts to build a national network of electric-vehicle charging stations.

The bipartisan measure touches on nearly every aspect of the electric-vehicle industry and eclipses previous efforts in the U.S. It also includes funding to help transform the nation’s aging electric grid by upgrading high-voltage transmission lines and other infrastructure set to become even more crucial as the country electrifies more of its transportation system.

It directs $5 billion to expanding electric-vehicle highway charging, which once in place would let drivers take longer road trips without the fear of running out of power. Proponents consider long-distance charging networks a critical missing ingredient for wider adoption of EVs.

A further $2.5 billion in federal grant funding could go toward electric-vehicle charging or alternatives such as hydrogen-fueling infrastructure, while $2.5 billion is set aside for electrifying school buses. Even more money for EVs could come through a separate $2.5 billion for low-emissions school buses, or measures such as $2.25 billion for ports that could be tapped for electrification projects.

“These are big, big numbers relative to what’s happened in the United States,” said Nick Nigro, founder of Atlas Public Policy, a Washington, D.C., research firm that tracks the EV market. “This is transformational for electric vehicles.”

So far, less than $5 billion has been committed to electric-vehicle charging infrastructure collectively in the U.S. by government agencies, utilities and states, and that has happened over a period of many years, Mr. Nigro said.

The money to jump-start the electric-vehicle industry is just one component in the biggest federal infrastructure-investment package in more than a decade. The legislation, which President Biden has indicated he will sign soon, includes funds to fix aging roads, bridges and ports, replace lead pipes in drinking-water systems, expand internet access in rural areas and tune up the power grid, among other projects.

While the funding represents an unprecedented level of government support for electrifying transportation, analysts say far greater sums would be needed to build a national network of charging stations akin to the gasoline stations that now dot the country. Government officials hope to build a more robust network of chargers capable of powering all types of electric vehicles. Currently, one of the most expansive networks in the country is the one Tesla Inc. built to support its vehicles.

Many electric-vehicle charging stations are unprofitable, and the burgeoning EV industry faces a chicken-or-the-egg dilemma: Consumers are wary of buying electric vehicles without sufficient stations, and companies are reluctant to build stations without sufficient customers.

‘This is transformational for electric vehicles.’

— Nick Nigro, founder of research firm Atlas Public Policy

Auto makers have started to offer more electric-vehicle options, and the U.S. is beginning to develop the ecosystem for a large build-out of charging stations, but the efforts remain a work in progress. States have established grant programs, and many utilities offer programs to get infrastructure in place. Convenience stores have started to sample the business, though many don’t view the market as viable yet.

“States are prepared. They’ve got experience,” said Anne Smart, vice president of public policy at the charging provider ChargePoint Holdings Inc. The charging industry has a network of contractors and “people in all 50 states ready to install the stations and maintain the stations,” Ms. Smart said.

A separate spending bill contains billions more in potential funding for EVs and the electric grid, though its fate and final details are uncertain. The spending bill includes a 30% tax credit for developers of long-distance transmission lines. It also includes an increase in tax credits for some electric-vehicle buyers, which could rise from $7,500 to $12,500.

The push to electrify vehicles comes at the same time the country’s electric grid has proven vulnerable to fires in the West and hurricanes along the coasts, as well as winter storms in Texas. There is debate in the industry about the ability of the current system to handle many new kinds of uses. Some sources of renewable energy, such as rooftop solar panels, can feed power back into the grid, but make planning more complex for grid operators.

Wind turbines in Texas, the leading U.S. generator of renewable electricity.

Photo: tannen maury/Shutterstock

The infrastructure package directs $2.5 billion in funding to transmission projects and $3 billion for smart-grid grants, which would use new technologies to help deliver more power over existing lines.

“It’s a nice signal to the industry but there’s a long way to go,” said Rob Gramlich, president of consulting firm Grid Strategies LLC and executive director of Americans for a Clean Energy Grid, a group advocating for more high-capacity transmission. About $20 billion a year is spent on transmission now in the U.S., he said, while reaching the Biden administration’s decarbonization goals this decade would take about $300 billion in new investment.

The infrastructure measure also aims to strengthen the federal government’s role in transmission-line siting. While interstate natural-gas pipeline routes fall under federal purview, transmission lines must go state-by-state for approvals, which has been one hurdle to better linking the country’s electric grid, Mr. Gramlich said.

Building more high-capacity transmission has long been understood to be critical if the country wants to accelerate the adoption of renewable energy. Texas’ $6.9 billion investment in transmission lines connecting windy West Texas with large cities turned it into the top U.S. generator of renewable electricity.

“The best renewables resources are typically in the middle of the country or the South where not a ton of people live,” said Ted Bloch-Rubin,

director of business development for the Americas at power-technology company Smart Wires Inc.

Write to Jennifer Hiller at jennifer.hiller@wsj.com