The 6-3 decision deals Trump his most significant defeat at the Supreme Court.
Last year, the justices issued temporary orders to block several of his initiatives, but Friday’s ruling is the first to hold that the president overstepped his legal authority.
Chief Justice John G. Roberts Jr., speaking for the court, said Congress has the power to impose taxes and tariffs, and lawmakers did not do so in an emergency law that does not mention tariffs.