US Supreme Court weakens Trump but boosts his authority