Stocks rally, driving Wall Street to a rare winning week