Canada’s main stock index closed lower Tuesday despite gains in the resources sector.

The S&P/TSX composite index shed 15.79 points to finish at 15,149.57. Most of the TSX subsectors were lower, but gains by oil and gold stocks helped cushion the fall.

The Canadian dollar was trading up 0.26 of a U.S. cent to an average price of US79.19¢.

Equity analyst Ian Scott of Manulife Asset Management called it a relatively quiet trading day in Canada because there were no major economic news releases or earnings reports.

In New York, the Dow Jones industrial average fell 54.99 points to 21,574.73 while the S&P 500 index gained 1.47 points to 2,460.61 to hit a new record. The Nasdaq composite index also set a record by climbing 29.88 points to 6,344.31, helped by a surge in shares of video-streaming service Netflix.

The company said it added 5.2 million subscribers over the past three months, and for the first time, has more subscribers outside the U.S. than in it.

In Washington, D.C., the Senate Republican health-care bill was defeated Monday night when two more GOP senators announced they opposed it. That prevented the proposal from coming to a vote. Republican leaders shifted their efforts to repealing the 2010 Affordable Care Act without creating a replacement law, but that effort was quickly shut down as well.

Scott said the health-care bill was seen as the first big test for the Donald Trump administration.

“The failure to get this done as quickly as many would’ve liked makes you question if they will encounter more difficulty down the road [with other initiatives],” he said. “Does this impact their ability to deliver on the big stimulus we’ve all been waiting for?”

Stock markets had shot up since Trump was elected U.S. president last November on expectations he will be able to push through his business-friendly agenda of tax reforms and cuts.

In commodities, the price of gold rallied amid a weak U.S. dollar. The August gold contract jumped US$8.20 to US$1,241.90 an ounce.

Elsewhere, September crude contract was up US36¢ to US$46.59 per barrel, August natural gas contract gained US7¢ to US$3.09 per mmBTU and the September copper contract was ahead by a penny at US$2.73 a pound.