U.S. stocks finished sharply lower, marking the second-straight weekly loss.