Supreme Court rules on key Trump cases