Blow for Trump as US upholds birthright citizenship