The Nasdaq Composite and the S&P 500 reached new peaks on Friday, boosting their weekly gains, follo