In an unsigned ruling, the Supreme Court demonstrated that it is willing to limit Donald Trump’s agenda.