[guided]We need the concrete group-theoretic input that $S$ and $T$ generate $SL_2(\mathbb{Z})$. Let $G$ denote the subgroup of $SL_2(\mathbb{Z})$ generated by $S$ and $T$. We prove $G=SL_2(\mathbb{Z})$ by reducing an arbitrary matrix using the Euclidean algorithm.
Take
\begin{align*}
\gamma =
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
\in SL_2(\mathbb{Z}).
\end{align*}
The determinant condition gives
\begin{align*}
ad-bc=1,
\end{align*}
so the first-column entries $a$ and $c$ have greatest common divisor $1$. We now act on the left by powers of $T$ and by $S$. Left multiplication changes rows, hence changes the first column as follows:
\begin{align*}
T^q
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
&=
\begin{pmatrix}
a+qc & b+qd \\
c & d
\end{pmatrix}, \\
S
\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}
&=
\begin{pmatrix}
-c & -d \\
a & b
\end{pmatrix}.
\end{align*}
Thus $T^q$ replaces the first column $(a,c)^\top$ by $(a+qc,c)^\top$, while $S$ replaces it by $(-c,a)^\top$.
The goal is to make the lower-left entry equal to $0$. If $c=0$, then $ad=1$, so $a=d=\varepsilon$ for some $\varepsilon \in \{1,-1\}$. Therefore
\begin{align*}
\gamma =
\begin{pmatrix}
\varepsilon & b \\
0 & \varepsilon
\end{pmatrix}
=
\varepsilon I\, T^{\varepsilon b}.
\end{align*}
Since $S^2=-I$, the matrices $I$ and $-I$ both lie in $G$, and $T^{\varepsilon b}\in G$. Hence $\gamma\in G$ in this case.
Now suppose $c\neq 0$. We show how to reduce $|c|$. If $|a|<|c|$, then left-multiplication by $S$ sends the first column to $(-c,a)^\top$, so the new lower-left entry has absolute value $|a|<|c|$. If $|a|\ge |c|$, the division algorithm gives an integer $q$ such that
\begin{align*}
r:=a+qc
\end{align*}
satisfies $|r|<|c|$. First left-multiply by $T^q$, which changes the first column to $(r,c)^\top$. Then left-multiply by $S$, which changes it to $(-c,r)^\top$. The new lower-left entry is $r$, and therefore its absolute value is strictly smaller than $|c|$.
This gives a strict descent in the nonnegative integer $|c|$. After finitely many repetitions, the lower-left entry becomes $0$. Hence there exists $A\in G$ such that
\begin{align*}
A\gamma =
\begin{pmatrix}
\varepsilon & m \\
0 & \varepsilon
\end{pmatrix}
\end{align*}
for some $\varepsilon\in\{1,-1\}$ and $m\in\mathbb{Z}$. The triangular case already proves $A\gamma\in G$. Since $A\in G$ and $G$ is a subgroup, $A^{-1}\in G$, and therefore
\begin{align*}
\gamma=A^{-1}(A\gamma)\in G.
\end{align*}
Thus every element of $SL_2(\mathbb{Z})$ lies in $G$, so $SL_2(\mathbb{Z})=G$.[/guided]