Costco said Trump's use of the International Emergency Economic Powers Act to impose tariffs should be deemed illegal.