President Trump said he was "ashamed of certain members of the court" after the Supreme Court struck down most of his tariffs.