[step:Apply extended weak duality to every competitor]
Let $\gamma \in \Pi(\mu,\nu)$ be arbitrary. Since $(\phi,\phi^c)$ is dual-admissible, the inequality
\begin{align*}
\phi(x)+\phi^c(y) \le c(x,y)
\end{align*}
holds for every pair $(x,y) \in X \times Y$ for which the extended sum is defined, in the admissibility sense coming from the $c$-transform. The functions $\phi$ and $\phi^c$ are Borel, and the reconstruction hypothesis gives the well-defined extended marginal quantity
\begin{align*}
\int_X \phi(x)\, d\mu(x)+\int_Y \phi^c(y)\, d\nu(y).
\end{align*}
Therefore the hypotheses of the extended-valued Kantorovich weak duality theorem are satisfied: for every transport plan $\gamma \in \Pi(\mu,\nu)$,
\begin{align*}
\int_X \phi(x)\, d\mu(x)+\int_Y \phi^c(y)\, d\nu(y) \le \int_{X \times Y} c(x,y)\, d\gamma(x,y),
\end{align*}
where the right-hand side is allowed to be $\infty$. This invocation avoids forming an undefined integral of the pointwise extended-valued sum against $\gamma$; weak duality is applied directly to the measurable admissible pair and its well-defined marginal integrals.
Combining this inequality with the equality obtained for $\pi$ yields
\begin{align*}
\int_{X \times Y} c(x,y)\, d\pi(x,y) \le \int_{X \times Y} c(x,y)\, d\gamma(x,y).
\end{align*}
If $\gamma$ has infinite cost, the inequality is immediate from the finiteness of the cost of $\pi$; if $\gamma$ has finite cost, it is exactly the preceding weak-duality inequality. Since $\gamma \in \Pi(\mu,\nu)$ was arbitrary, $\pi$ attains the minimum Kantorovich cost. Therefore $\pi$ is optimal.
[/step]