In a 5-4 decision, the US Supreme Court has issued a caveat to Trump’s claim that presidents can do whatever they want.