The dispute before the court was prompted by an order President Trump signed on his first day back in the White House.