WASHINGTON — Money to help BART and other public transit agencies, San Francisco International Airport and homeless people in the Bay Area is included in the $2 trillion coronavirus stimulus bill that the full Congress could pass as early as Thursday. The measure passed unanimously in the Senate late Wednesday night.

Many details of the sprawling package are still unclear, but officials said Wednesday that it includes billions of dollars to help San Francisco and other cities cope with the economic devastation the COVID-19 pandemic is likely to cause.

Among the biggest earmarks for the Bay Area:

• $1.3 billion for transit agencies including BART, which says it is hemorrhaging $39 million per month as ridership has all but evaporated.

• $254 million for SFO, where many domestic and most international flights have been halted.

• $11 million for San Francisco to help homeless people who are especially vulnerable to the pandemic.

House Speaker Nancy Pelosi, D-San Francisco, said the package is “bipartisan legislation (that) takes us a long way down the road in meeting the needs of the American people.”

The Bay Area’s share of the public transit money accounts for more than a third of the $3.4 billion that will go to transit agencies throughout California whose ridership has fallen sharply since most workers were sent home starting early this month.

Randy Rentschler, legislative director for the Metropolitan Transportation Commission, estimated the deal would net Bay Area agencies about three times as much as they receive annually from the federal government in normal times.

“This is a very big deal,” he said.

BART General Manager Robert Powers said the money will keep the system’s trains running, even with ridership having fallen 90%. BART has largely kept service in place during the stay-at-home order put in place in the Bay Area last week, though it now halts trains at 9 p.m.

“These emergency funds can be the difference between needing to shut down when our reserves run out and maintaining service to keep the San Francisco Bay Area moving,” Powers said.

The bill also includes $10 billion nationally to help airports struggling due to a sharp drop in business as airlines cut flights. Several airlines have grounded nearly all flights into the Bay Area. United Airlines, which has a hub at SFO, has cut more than half of its domestic flights and 90% of its international flights in April.

It was not immediately clear whether there is additional funding for Oakland and Mineta San Jose international airports to go with the $254 million for SFO.

California officials have also stressed they need more money to house homeless people to help stop the spread of the coronavirus. The bill includes up to $237 million for the state and local governments to fund homeless assistance and prevention programs.

Gov. Gavin Newsom warned President Trump in a letter over the weekend that California counties were “already working well beyond their capacity” to manage the state’s roughly 150,000 homeless people even before the pandemic hit.

San Francisco is slated to get at least $11 million of the money set aside for homeless assistance grants in the bill, and $1 million to help provide housing for low-income people with HIV/AIDS.

The bill contains several broader victories for Democrats, including expanded unemployment benefits that will cover freelance and gig workers. Still, several Bay Area lawmakers said another stimulus bill is likely to be needed as the economic effects of the pandemic deepen.

Rep. Ro Khanna, D-Fremont, said he wants the next bill to provide greater cash assistance to people, particularly those in areas with a higher cost of living. The package now before Congress would provide $1,200 for individual adults making up to $75,000 a year but less for those making up to $99,000, after which the money would be eliminated. For couples, the figures are doubled.

Khanna said the caps ignore that many people in high cost-of-living areas such as his Silicon Valley district struggle even on incomes approaching $100,000. He wants larger payments, up to $2,000 for six months, with higher income limits.

Khanna and other Democrats have also called for a national moratorium on coronavirus-related evictions and foreclosures.

“Is this the bill we would have written? Absolutely not,” Khanna said. “Politics is always the art of the possible, and I give the speaker a lot of credit for doing the best that she possibly could in light of who’s sitting in the White House.”

An earlier version of this story misstated the days BART service ends at 9 p.m. Trains now stop running at that time seven days a week.

Dustin Gardiner and Michael Cabanatuan are San Francisco Chronicle staff writers. Email: dustin.gardiner@sfchronicle.com, mcabanatuan@sfchronicle.com Twitter: @dustingardiner, @ctuan