The Dow Jones Industrial Average, S&P 500 and Nasdaq Composite all posted on Friday their biggest weekly declines since March.