Stocks ended mixed on Tuesday, with both the Dow Jones Industrial Average and S&P 500 reaching fresh record closing highs while the Nasdaq slipped lower, after the U.S. Senate passed the $1 trillion infrastructure package, boosting stocks tied to economic growth.

The U.S. Senate on Tuesday passed the $1 trillion bipartisan infrastructure package in a 69-30 vote in favor of the bill. The plan, which includes $550 billion in new spending to rebuild physical transportation infrastructure across the country and advance nationwide broadband initiative, is expected to help boost economic growth as the U.S. continues to recover from the coronavirus pandemic.

The bill will now move to be voted on by the House of Representatives in the fall, and, if it passes, will move to President Joe Biden's desk most likely before the year's end.

Here's how the market settled on Tuesday:

S&P 500 Index (SPY  ): +0.10% or +4.40 points to 4,436.75

Dow Jones Industrial Average (DIA  ): +0.46% or +162.82 points to 35,264.67

Nasdaq Composite Index (QQQ  ): -0.49% or -72.09 points to 14,788.09

Small business optimism declines in July:

Economic optimism among small business owners declined month-over-month in July, as the ongoing labor shortage and supply chain issues weigh on sentiment, according to the National Federation of Independent Business's (NFIB) monthly report published Tuesday.

The NFIB's small business optimism index decreased at a more-than-expected rate from 102.5 in June to 99.7 in July. Moreover, nearly half of business owners surveyed reported job openings that could not be filled, marking the highest proportion on record for the index.

"Small business owners are losing confidence in the strength of the economy and expect a slowdown in job creation," NFIB Chief Economist Bill Dunkelberg said in a press statement. "As owners look for qualified workers, they are also reporting that supply chain disruptions are having an impact on their businesses. Ultimately, owners could sell more if they could acquire more supplies and inventories from their supply chains."

Moderna to build manufacturing plant in Canada:

Moderna (MRNA  ) announced Tuesday that it has reached a deal with the Canadian government to build a "state-of-the-art" manufacturing plant in Canada to produce the biotech's COVID vaccine, as well as potentially make shots for other respiratory viruses for the nation.

The new facility plans to provide Canadians access to domestically manufactured mRNA vaccines against multiple respiratory viruses, including SARS-CoV-2, the seasonal influenza, respiratory syncytial virus and possible other vaccines, pending licensure, Modera said in a press statement.

The plant is also intended to be used during public health emergencies to support the nation with direct access to vaccines, the drugmaker added.

Here's how the market started trading after opening bell:

S&P 500 Index: +0.10% or +4.45 points to 4,436.80

Dow Jones Industrial Average: +0.04% or +15.54 points to 35,117.39

Nasdaq Composite Index: +0.22% or +33.14 points to 14,892.05