The US Supreme Court has rejected Trump’s bid to stop the children of some immigrants obtaining US citizenship at birth.