Friday was a strong day for the stock market, with major market benchmarks making up most of their lost ground from Thursday’s session and finishing up almost 1%. The day marked the end of the third quarter, and solid gains for stocks meant that investors got through another year without seeing a major September downward surprise.