Proof (uniqueness of $A_n$)
Since $|S_n : H| = 2$, $H\lhd S_n$ and $S_n/H \isom C_2$. This provides a surjective homomorphism $$ \theta : S_n \to C_2 = \set{\pm 1} $$ with $H = \ker\theta$.
Since transpositions generate $S_n$, there is a transposition $\tau_0$ such that $$ \theta(\tau_0) = -1 $$ as otherwise $\theta$ maps everything to $+1$. Now since all transpositions are conjugates, any transposition $\tau$ can be written as $$ \tau = \sigma\tau_0\sigma\inv $$ for some $\sigma\in S_n$. Then $$\begin{align*} \theta(\tau) &= \theta(\sigma)\theta(\tau_0)\theta(\sigma)\inv \\ &= \theta(\sigma)\theta(\sigma)\inv\theta(\tau_0) && C_2\text{ is abelian}\\ &= -1. \end{align*}$$
Therefore $\theta$ and $\sign$ agree on a generating set of $S_n$, so $\theta=\sign$ and hence $H=\ker\theta = \ker\theta=A_n$.