The decision firmly rejected the executive order that Trump issued on the first day of his second term.