The U.S. stock market finished its zigzag week full of tariff threats and cancellations with a quiet and tentative close.