Proof (products of even transpositions make identity)
Note that we can replace each transposition with a product of even adjacent transpositions without changing the parity of $k$, so we assume $\tau_1, \ldots, \tau_k$ are adjacent.
Then it suffices to prove that $k\equiv$ number of inversions of $\sigma$ $\mod 2$ since $e$ has 0 inversions.
We will prove this by induction on $k$. For base case $k=0$, $\sigma=e$ has 0 inversions.
For the inductive step, let $\sigma = \pmat{l&l+1}\sigma'$ where $\tau_1 = \pmat{l & l+1}$ and $\sigma' = \tau_2\tau_3\ldots\tau_k$. We will find how many pairs $\set{i,j}$ are inversions of $\sigma'$ but not of $\sigma$ or vice versa. The only cases where this is true (check other cases yourself; they are boring) are $$ \begin{cases} \sigma'(i) &= l \\ \sigma'(j) &= l+1 \end{cases} \quad\text{or}\quad \begin{cases} \sigma'(j) &= l \\ \sigma'(i) &= l+1 \end{cases}. $$ Since these two cases correspond to only one unique pair $\set{\sigma'\inv(l), \sigma'\inv(l+1)}$, we see that $$ \text{number of inversions of }\sigma = (\text{number of inversions of }\sigma') \pm 1 $$ as required.