A federal appeals court ruled 2-1 on Monday that portions of the Pentagon’s restrictive transgender military policy are unlawful and unconstitutional.