[step:Integrate the logarithmic factorization]
Keep the definitions from the previous step: $g$ is the marginal density, $h$ is the jointly measurable conditional density, and $r:E\times F\to[0,\infty]$ is defined by
\begin{align*}
r(x,y)=g(y)h(x,y).
\end{align*}
The previous step proved that $r$ is a Radon--Nikodym derivative of $\nu$ with respect to $\mu$. Since $r$ is a probability density with respect to the probability measure $\mu$, it is finite and positive for $\nu$-a.e. $(x,y)$. Also $g$ is finite and positive for $\nu_Y$-a.e. $y$, and $h(\cdot,y)$ is finite and positive for $\nu_{X\mid Y=y}$-a.e. $x$ for $\nu_Y$-a.e. $y$. Therefore
\begin{align*}
\log r(x,y)=\log g(y)+\log h(x,y)
\end{align*}
for $\nu$-a.e. $(x,y)$.
We first justify that this sum of extended real-valued functions is legitimate. Define the negative-logarithm map $\ell^-:[0,\infty)\to[0,\infty]$ by $\ell^-(0)=+\infty$ and, for $t>0$,
\begin{align*}
\ell^-(t)=\max\{-\log t,0\}.
\end{align*}
We use the convention $t\ell^-(t)=0$ at $t=0$. The elementary bound
\begin{align*}
t\ell^-(t)\le e^{-1}
\end{align*}
holds for all $t\ge 0$, because $-t\log t\le e^{-1}$ on $0<t\le 1$ and the left-hand side is $0$ for $t\ge 1$. Hence
\begin{align*}
\int_F (\log g(y))^-\,d\nu_Y(y)
=
\int_F g(y)(\log g(y))^-\,d\mu_Y(y)
\le e^{-1}.
\end{align*}
For $\nu_Y$-a.e. $y$, the same bound applied to the density $h(\cdot,y)$ gives
\begin{align*}
\int_E (\log h(x,y))^-\,d\nu_{X\mid Y=y}(x)
\le e^{-1}.
\end{align*}
Integrating this inequality with respect to $\nu_Y$ and using disintegration of $\nu$ gives
\begin{align*}
\int_{E\times F}(\log h(x,y))^-\,d\nu(x,y)
\le e^{-1}.
\end{align*}
Thus the negative parts of both logarithmic terms are integrable, so no undefined expression of the form $+\infty-\infty$ occurs when the logarithm of $r=gh$ is split.
By the definition of relative entropy and the preceding integrability check,
\begin{align*}
D(\nu\|\mu)=\int_{E\times F}\log r(x,y)\,d\nu(x,y)=\int_{E\times F}\log g(y)\,d\nu(x,y)+\int_{E\times F}\log h(x,y)\,d\nu(x,y).
\end{align*}
For the first term, since $(x,y)\mapsto\log g(y)$ depends only on $y$, the definition of the marginal $\nu_Y$ gives
\begin{align*}
\int_{E\times F}
\log g(y)\,d\nu(x,y)
=
\int_F \log g(y)\,d\nu_Y(y)
=
D(\nu_Y\|\mu_Y).
\end{align*}
For the second term, the disintegration formula for $\nu$ gives
\begin{align*}
\int_{E\times F}
\log h(x,y)\,d\nu(x,y)
=
\int_F
\left(
\int_E \log h(x,y)\,d\nu_{X\mid Y=y}(x)
\right)
d\nu_Y(y).
\end{align*}
For $\nu_Y$-a.e. $y$, $h(\cdot,y)=d\nu_{X\mid Y=y}/d\mu_{X\mid Y=y}$, so
\begin{align*}
\int_E \log h(x,y)\,d\nu_{X\mid Y=y}(x)
=
D(\nu_{X\mid Y=y}\|\mu_{X\mid Y=y}).
\end{align*}
Combining the two identities yields
\begin{align*}
D(\nu\|\mu)
=
D(\nu_Y\|\mu_Y)
+
\int_F
D(\nu_{X\mid Y=y}\|\mu_{X\mid Y=y})
\,d\nu_Y(y).
\end{align*}
[/step]