A federal judge has blocked President Donald Trump’s executive order banning transgender people from serving in the U.S.