Update 1/28/19: The nonpartisan Congressional Budget Office reported that the shutdown cost about $11 billion, at least $3 billion being a permanent loss.

Lost productivity from furloughed workers and weakened economic activity during the 35-day partial government shutdown cost the U.S. economy at least $6 billion, according to a new analysis from S&P Global Ratings.

On Friday, after staff shortages caused disruptions at some of that nation’s busiest airports, President Donald Trump agreed to end the longest-ever shutdown without Congress fulfilling his demand of $5.7 billion for a border wall. Congress then passed seven stopgap spending bills to fund affected government agencies through February 15.

"Although this shutdown has ended, little agreement on Capitol Hill will likely weigh on business confidence and financial market sentiments," S&P said in a news release.

View photos The government shutdown cost U.S. more than Trump wanted for a wall. (Graphic: David Foster/Yahoo Finance) More

‘Direct impacts of the government shutdown will flow through GDP’

On January 22, The Committee for a Responsible Federal Budget (CRFB) estimated the cost of the shutdown to be $26 billion. That would be more than four times as much as Trump demanded for a border wall.

“Using the Council of Economic Advisers' estimate of a weekly loss of 0.13 percentage points of quarterly Gross Domestic Product (GDP) growth,” CRFB states, “we estimate that the four weeks of the government shutdown has cost the economy about $26 billion.”

The shutdown hit various government agencies, with furloughed workers and particularly contractors — who lost work and will not receive backpay — feeling the affects in their daily lives.

View photos The government shutdown affected agencies in various ways. (Graphic: David Foster/Yahoo Finance) More

In a note late Friday night, Morgan Stanley analysts estimated that the shutdown would result in a .5 percentage point drag on first quarter GDP growth.

“The direct and indirect effect of the government shutdown have led us to review our 1Q growth estimate, and we now see 1Q GDP growth at 1.7%,” the analysts wrote. “That downgrade to our 1Q GDP forecast includes a 0.5pp drag from the shutdown.”

The analysts explained that “direct impacts of the government shutdown will flow through GDP via reduced hours worked by government employees, while indirect effects will be felt through impacts on government contracts, and the reduced consumption of government employees who have been without pay."

View photos U.S. President Donald Trump (2R) argues about border security with Senate Minority Leader Chuck Schumer (D-NY) (R) and House Minority Leader Nancy Pelosi (D-CA) as Vice President Mike Pence sits nearby in the Oval Office on December 11, 2018 in Washington, DC. (Photo by Mark Wilson/Getty Images) More