A federal judge on Tuesday blocked President Donald Trump’s executive order banning transgender people from military service.