After coming under pressure early in the session, stocks showed a substantial rebound over the course of the trading day on Friday. The turnaround lifted the Dow to its best closing level in almost four months, while the Nasdaq and the S&P 500 reached three-month closing highs.