[guided]Recall the objects already constructed in the proof. The constant $Z\in(0,\infty)$ is defined by
\begin{align*}
Z:=\int_E e^{\alpha g(x)}\,d\mu(x).
\end{align*}
The function $\rho:E\to(0,\infty)$ is defined by
\begin{align*}
\rho(x):=\frac{e^{\alpha g(x)}}{Z}.
\end{align*}
The probability measure $\mu_\alpha:\mathcal E\to[0,1]$ is defined by
\begin{align*}
\mu_\alpha(A):=\int_A \rho(x)\,d\mu(x)
\end{align*}
for $A\in\mathcal E$. Also $h:E\to[0,\infty)$ is a Radon-Nikodym density of $\nu$ with respect to $\mu$, so $d\nu=h\,d\mu$.
The tilted measure $\mu_\alpha$ is designed so that its density contains exactly the exponential term in the desired estimate. Because $d\mu_\alpha=\rho\,d\mu$ and $d\nu=h\,d\mu$, the density of $\nu$ with respect to $\mu_\alpha$ must satisfy $k(x)\rho(x)=h(x)$ for $\mu$-almost every $x\in E$. Hence $k(x)=h(x)/\rho(x)$ for $\mu_\alpha$-almost every $x\in E$.
Now we prove the only entropy fact needed here. Define the scalar function $\varphi:[0,\infty)\to\mathbb{R}$ by $\varphi(t)=t\log t-t+1$ for $t>0$ and $\varphi(0)=1$. On $(0,\infty)$ we have $\varphi'(t)=\log t$, so $\varphi$ decreases on $(0,1]$ and increases on $[1,\infty)$. Since $\varphi(1)=0$ and $\varphi(0)=1$, the minimum of $\varphi$ on $[0,\infty)$ is $0$. Equivalently,
\begin{align*}
t\log t\geq t-1
\end{align*}
for every $t\in[0,\infty)$, using $0\log 0=0$. The same calculus computation gives $t\log t\geq -e^{-1}$ for all $t\in[0,\infty)$, so the negative part of $k\log k$ is bounded by $e^{-1}$ and is $\mu_\alpha$-integrable. Applying this pointwise inequality to the measurable density $k$ and integrating with respect to the probability measure $\mu_\alpha$ yields
\begin{align*}
\int_E k(x)\log k(x)\,d\mu_\alpha(x)\geq \int_E k(x)\,d\mu_\alpha(x)-\int_E 1\,d\mu_\alpha(x).
\end{align*}
The first integral on the right is $\nu(E)=1$, because $k=d\nu/d\mu_\alpha$, and the second is $\mu_\alpha(E)=1$, because $\mu_\alpha$ is a probability measure. Therefore
\begin{align*}
D(\nu\|\mu_\alpha)=\int_E k(x)\log k(x)\,d\mu_\alpha(x)\geq 0.
\end{align*}
This non-negativity is the mechanism that converts the comparison measure into an upper bound for $\int_E g\,d\nu$.[/guided]