The US Supreme Court has struck down President Donald Trump’s central policy.