US markets close green as Trump tariff drama muddies outlook