Here is another solution. Let $a, b > 0$ and consider the simple closed curve $\gamma$ parametrized by $(x, y) = (a\cos t, b\sin t)$ for $0\leq t \leq 2\pi$. Then
\begin{align*}
\int_{0}^{2\pi} \frac{dt}{a^2\cos^2 t + b^2\sin^2 t}
&= \frac{1}{ab} \int_{0}^{2\pi} \frac{(-b\sin t)(-a\sin t \, dt) + (a\cos t)(b\cos t \, d t)}{a^2\cos^2 t + b^2\sin^2 t} \\
&= \frac{1}{ab}\int_{\gamma} \frac{-y \, dx + x \, dy}{x^2+y^2}.
\end{align*}
Notice that our case corresponds to $(a, b) = (\sqrt{1-x}, 1)$. Now the last integral can be computed in various ways:
1st way. Denote by $C(\epsilon)$ the counter-clockwise oriented circle of radius $\epsilon$ centered at $0$. If $\epsilon$ is sufficiently so that $C(\epsilon)$ lies in the interior of $\gamma$, then by an application of the Green's theorem we have
$$ \int_{\gamma} \frac{-y \, dx + x \, dy}{x^2+y^2} = \int_{C(\epsilon)} \frac{-y \, dx + x \, dy}{x^2+y^2} = 2\pi. $$
2nd way. Let $z = x+iy$. Then it is easy to check that
$$ \int_{\gamma} \frac{-y \, dx + x \, dy}{x^2+y^2} = \operatorname{Im}\left( \int_{\gamma} \frac{dz}{z} \right) = 2\pi. $$
3rd way. Consider the polar coordinates $(x, y) = r(\cos\theta, \sin\theta)$. Then it is easy to check that
$$ d\theta = \frac{-y \, dx + x \, dy}{x^2+y^2} $$
and hence
$$ \int_{\gamma} \frac{-y \, dx + x \, dy}{x^2+y^2} = \int_{\gamma} d\theta = 2\pi. $$
(Although $\theta$ is not well-defined on all of $\Bbb{R}^2\setminus\{0\}$, this issue can be easily overcome by various means. For instance, we can split $\gamma$ into arcs on which polar coordinate change works well.)