Proof (holomorphic parametrised integral)
Since holomorphicity is a local property, WLOG restrict $U$ to a disk. We will apply Morera:
Let $T: [c,d]\to U$ be a closed curve. Then $$ \begin{align*} \oint_{γ} g(z) \d z ={}& \int_{c}^{d} \left(\int_{a}^{b} ϕ(γ(t), s) \d s\right) γ'(t) \d t \\ ={}& \int_{c}^{d} \left(\int_{a}^{b} ϕ(γ(t), s) \, γ'(t) \d s\right) \d t \\ ={}& \int_{a}^{b} \left(\int_{c}^{d} ϕ(γ(t), s)\, γ'(t) \d t\right) \d s \tag{*} \\ ={}& \int_{a}^{b} \oint_γ ϕ(z,s) \d z\d s \end{align*} $$ where $(*)$ has used Fubini's theorem. By Cauchy's theorem in a disk, since $z\mapsto ϕ(z,s)$ is holomorphic, $\oint_γ ϕ(z,s)\d z = 0$. Therefore $\oint_γ g(z) \d z =0$, as required for Morera.