The US Supreme Court has reaffirmed one of the country's oldest constitutional protections by striking down President Donald Trump's attempt to end automatic citizenship for many children born on American soil.