A Trump-era dispute seeking financing for the US–Mexico border wall was dismissed by the Supreme Court.