President Donald Trump has signed an executive order that would heavily limit birthright citizenship, which is expected to be challenged in court.