U.S. stocks ended little changed on Thursday as gains brought by a sign of improvement in the labor market were capped by a drop in Apple shares after a legal setback in a court ruling.

The Dow Jones industrial average was down 18.58 points, or 0.14 percent, at 13,326.39. The Standard & Poor's 500 Index was up 0.28 point, or 0.02 percent, at 1,432.84. The Nasdaq Composite Index was down 2.40 points, or 0.08 percent, at 3,049.38.

(Reporting by Angela Moon; Editing by Dan Grebler)