By DAMIAN J. TROISE and ALEX VEIGA
AP Business Writers
Stocks ended an up-and-down day lower on Wall Street, giving the S&P 500 its fifth consecutive loss and its first weekly decline after two weeks of gains. The benchmark index gave back 0.8% Friday, extending its loss for the week to 1.7%. Technology stocks did the most to weigh down the market, and the tech-heavy Nasdaq pulled back 0.9%. Apple fell 3.3% after a judge ordered the company to take down part of the competitive barricade that surrounds its app store, which is a major moneymaker for the company. The yield on the 10-year Treasury note rose to 1.33%.