Proof (existence of an invariant distribution)
Exists positive recurrent state $\implies$ exists invariant distribution
Let $k\in I$ be a positive recurrent state. Using the invariant measure $\nu_k$, $$ \begin{align*} \sum_{i\in I} \nu_k(i) ={}& \sum_{i\in I} \expect\Big(\sum_{n=0}^{T_k-1} \mathbb{1}(X_n = i) \Big| X_0 = k\Big) \\ ={}& \expect\Big(\sum_{n=0}^{T_k-1} \underbrace{\sum_{i\in I} \mathbb{1}(X_n = i)}_{1} \Big| X_0 = k\Big) \\ ={}& \expect(T_k | X_0 = k) \tag{*}\\ <{}& \infty. \end{align*} $$ Therefore the measure $\pi$ defined by $$ \begin{align*} \pi_i = \frac{\nu_i}{\expect(T_k | X_0 = k)} \end{align*} $$ is a probability distribution and is invariant by the invariance of $\nu_k$.
Exists invariant distribution $\implies$ every state is positive recurrent
Let $k\in I$ be any state.
First we will show that $\pi_k > 0$. Let $i\in I$ such that $\pi_i>0$. By irreducibility of $P$, there exists $n$ such that $p_{ik}(n) > 0$. Then by invariance of $\pi$, $$ \begin{align*} \pi_k ={}& (\pi P^n)_k \\ ={}& \sum_{j\in I} \pi_j p_{jk}(n) \\ \geq{} & \pi_i p_{ik}(n) \\ >{}& 0. \end{align*} $$
Then we can define an invariant measure $\lambda^{(k)}$ by $$ \begin{align*} \lambda_i^{(k)} = \frac{\pi_i}{\pi_k}, \quad i\in I. \end{align*} $$ Since $\lambda_k^{(k)} = 1$, we have $\lambda^{(k)} \geq \nu_k$. Therefore from $(*)$, $$ \begin{align*} \expect(T_k|X_0 = k) ={}& \sum_{i\in I} \nu_k(i) \\ \leq{} & \sum_{i\in I} \lambda_i^{(k)} \tag{\dagger}\\ ={}& \frac{\sum_{i\in I} \pi_i}{\pi_k} \\ ={}& \frac{1}{\pi_k} < \infty. \end{align*} $$
Hence $k$ is positive recurrent.
Invariant distribution
For each $k\in I$, since now we know $k$ is (positive) recurrent, $(\dagger)$ is now an equality. Thus $$ \begin{align*} \pi_k = \frac{1}{\expect(T_k | X_0 = k)}. \end{align*} $$