Wall Street ending bruising week on front foot, but worries about economic impact of tariffs linger