A decorated Navy commander says she was forced to retire after 20 years of service simply because she is transgender.