Worries that Washington may not be able to help businesses as much as once thought knocked stock indexes down hard early on Monday, but they clawed back most of their losses and ended the day mixed.
The Standard & Poor's 500 index fell 2.39 points, or 0.1%, to 2,341.59 for its seventh drop in the last eight days.
The Dow Jones industrial average sank 45.74, or 0.2%, to 20,550.98, while the Nasdaq composite index rose 11.64, or 0.2%, to 5,840.37.
When trading opened for the day, it looked as if losses would be much worse.
The S&P 500 sank from the start and was down as much as 0.9%.
The weakness followed last week's failure by Republicans to repeal the Affordable Care Act, something they have been pledging to do for years, which raised doubts that Washington can push through promises to help businesses.
Investors have been anticipating that President Donald Trump and the Republican-led Congress will cut taxes, loosen regulations for companies and institute other corporate-friendly policies.
Indexes recovered most of their losses in the afternoon, largely thanks to gains in hospital and other health care stocks.
Tax cuts, deregulation and other business-friendly moves could still happen, but even if they do not, the stock market has several pillars of support, said John Manley, chief equity strategist at Wells Fargo Funds Management.
"Trump lucked out when he got elected president, because it was just as earnings were coming out of a two-year slumber," he said.
"I think it's been as much, if not more, about earnings as it's been him" behind the 9.4% rise for the S&P 500 since election day.
An improving economy is translating into bigger profits for businesses, which are set to report their first-quarter results in the coming weeks.
The Federal Reserve, meanwhile, is moving very slowly in raising interest rates and is loath to apply the brakes to the economy too quickly.
"Investors have to acknowledge that a 5% correction can happen at any time, and the fact that we haven't had a 1% down day for so long is extraordinary," Manley said. "But the things that are usually responsible for a major market decline just don't seem to be in place."
The S&P 500 has lost 1% in a day just once since mid-October.
Interest rates fell Monday.
The yield on the 10-year Treasury dropped to 2.37% from 2.41% late Friday. Just a couple weeks ago, it was above 2.60%.
Bank stocks have tracked the movements of Treasury yields recently, because higher interest rates would allow them to charge more for loans and reap bigger profits.
Investors also expected financial companies to be some of the biggest beneficiaries of easier regulations with a Republican-led White House.
Financial stocks in the S&P 500 dropped 0.5%, one of the larger losses among the 11 sectors that make up the index. Morgan Stanley fell 88 cents, or 2.1%, to 41.58 dollars, and Capital One Financial lost 1.67 dollars, or 2%, to 82.13 dollars.
Hospital stocks were among the strongest performers.
The Republican health care plan would have resulted in 24 million additional uninsured people in a decade, according to a tally by the Congressional Budget Office. And hospitals take care of patients, whether they are insured or not.
HCA Holdings jumped 4.45 dollars, or 5.2%, to 90.49 dollars for the biggest gain in the S&P 500. Universal Health Services rose 4.08 dollars, or 3.3%, to 125.97 dollars.
Also demonstrating the swing from nervousness in the morning to a more measured mood in the afternoon was the VIX index, which tracks how much traders are paying to protect against upcoming drops in the S&P 500.
Early Monday, the VIX jumped nearly 17% and was close to its highest level since mid-November. It calmed through the day and was down by the afternoon.
The price of gold rose 7.20 dollars to settle at 1,255.70 dollars an ounce. Silver rose 36 cents to 18.11 dollars per ounce. Copper was close to flat at 2.63 dollars per pound.
Benchmark US crude fell 24 cents to settle at 47.73 dollars per barrel. Brent crude, used to price international oils, fell five cents to 50.57 dollars a barrel.
Natural gas fell two cents to 3.05 dollars per 1,000 cubic feet, wholesale petrol rose a penny to 1.62 dollars per gallon and heating oil was close to flat at 1.50 dollars per gallon.
The dollar fell to 110.57 Japanese yen from 110.80 late on Friday.
The euro rose to 1.0868 from 1.0808 dollars, and the British pound rose to 1.2566 dollars from 1.2500 dollars.