The second half of such a path is completely determined by the first half, so you’re really just counting the possible first halves. They are precisely the paths of length $n$ that never rise above the diagonal. Such paths can reach any of the points $\langle n-k,k\rangle$ such that $0\le k\le n-k$, so $0\le k\le\left\lfloor\frac{n}2\right\rfloor$, and the total number of such paths is
$$\begin{align*} \sum_{k=0}^{\lfloor n/2\rfloor}\left(\binom{n}{n-k}-\binom{n}{n-k-1}\right)&=\sum_{k=n-\lfloor n/2\rfloor}^n\left(\binom{n}k-\binom{n}{k+1}\right)\\\ &=\binom{n}{n-\lfloor n/2\rfloor}-\binom{n}{n+1}\\\ &=\binom{n}{n-\lfloor n/2\rfloor}\\\ &=\binom{n}{\lceil n/2\rceil}\;, \end{align*}$$
since the second summation clearly telescopes.