U.S. stocks finished a volatile week with mixed performance, extending a second consecutive week of modest declines for major indices. Despite the pullback, markets remain close to record levels.