A federal judge on Monday partially blocked the enforcement of President Trump's transgender military ban.