An irritated president, whose global tariffs were struck down, clearly felt betrayed by the Supreme Court justices he appointed. But the ruling shows the system still works as intended.