Highlights: define
$$C_R:=[-R,R]\cup\gamma_R\;,\;\;\gamma_R:=\{z\in\Bbb C\;;\;z=Re^{i\theta}\,\,,\,0\leq \theta\leq \pi\;,\;\;R\in\Bbb R^+\}\;,\;\;f(z):=\frac{e^{itz}}{z^2+1}$$
For $\;R>1\;$ , we have only one simple pole of $\;f\;$ inside the domain determined by the above curve, and
$$\text{Res}_{z=1}(f)=\lim_{z\to i}(z-i)f(z)=\lim_{z\to i}\frac{e^{itz}}{z+i}=\frac{e^{-t}}{2i}$$
and by the Residue Theorem
$$\int\limits_{C_R}f(z)dz=2\pi i\frac{e^{-t}}{2i}=\frac\pi{e^t}$$
Also, by Jordan's Lemma
$$\int\limits_{\gamma_R}f(z)dz\xrightarrow[R\to\infty]{}0$$
So passing to the limit:
$$\frac\pi{e^t}=\lim_{R\to\infty}\int\limits_{C_R}f(z)=\int\limits_{-\infty}^\infty\frac{e^{ixt}}{x^2+1}dx$$
Now take real parts, use the fact that the real function is even and etc.