As soon as Tuesday, the Senate could take up legislation that would pour $52 billion into chip research and incentives for building manufacturing plants in the United States. Lawmakers should approve the bill and get it to the president’s desk as soon as possible.

Big subsidies for a thriving industry can be difficult to swallow. But Congress really doesn’t have a choice. In China, Singapore, Taiwan, and Europe, governments are pouring massive sums into semiconductors. And if Washington doesn’t compete, the country’s shrinking share of semiconductor production could shrink even further. In 1990, 37 percent of the world’s chip-making capacity resided in the United States. Now it’s just 12 percent.

That’s a national security concern. Without a steady domestic supply of chips, our economy and our military prowess are put at real risk.

The House approved the semiconductor spending in February, tucking it into a larger package aimed at countering China’s growing economic and technological power. And the Senate passed a narrower version of the bill last year.

But the legislation has languished. And domestic manufacturers have put plans for new semiconductor plants on hold in places like Ohio and Texas while they wait on word from Congress.

Drag out the process too long, the companies have warned, and they’ll go overseas.

It’s not the $52 billion in research dollars and manufacturing incentives that has slowed passage of the broad economic competitiveness legislation that has been stalled in Congress for months. Among other things, Republicans have objected to parts of the House version that favor unionization and boost aid for workers displaced by offshoring.

Senate Majority Leader Chuck Schumer, eager for a victory before the midterm elections, appears willing to move on a slimmed-down bill that would pair the semiconductor subsidies with a tax credit from another bipartisan chip-manufacturing bill.

Some other elements of the larger economic competitiveness package may be tacked on, too, in what some lawmakers are calling a “chips-plus” bill. But it’s unclear which ones.

Several are worthy of inclusion.

One provision, for instance, would create a new office in the Commerce Department tasked with heading off the kind of supply chain shocks — in semiconductors and other products — that have bedeviled the American economy in recent months. Officials would monitor the availability of goods and services in real time, allowing industry to prepare for emerging gaps and Washington to stockpile components that may be running short.

“Without that sort of intelligence-gathering function,” says Todd Tucker, director of industrial policy and trade at the Roosevelt Institute, a left-leaning think tank and nonprofit, “the government would be flying blind.”

Tackling the semiconductor problem may be Job One. But the chips shortage of the last couple of years carries some broader lessons, too.

Lawmakers should also seize the opportunity to better prepare the country for the next big disruption — be it a climate event or a war or another pandemic.

Editorials represent the views of the Boston Globe Editorial Board. Follow us on Twitter at @GlobeOpinion.