The US Supreme Court has ruled President Donald Trump's executive order limiting birthright citizenship is unconstitutional.