President Donald Trump signed an executive order to end birthright citizenship in the US that should take effect in 30 days.