The justices granted emergency appeals and set aside rulings from district judges who blocked Trump’s orders from taking effect. But the court also put two important checks on his power.