President Trump is preparing to give the Defense Department formal authority to dismiss transgender troops, a person familiar with the directive said.