There is growing anger in the US after President Donald Trump abruptly announced he was banning transgender people from serving in the military.