President Donald Trump has signed an executive order aimed at curtailing gender transitions for people under the age of 19.