Donald Trump has signed an executive order calling for the federal government to define sex as only male or female.