Congress advised it has authority to undo any transgender military ban