Stocks finished higher as investors look beyond their concerns about tariffs and a possible trade war.