Edit. I can be a little more explicit. For a general pencil $S$ as above, there are precisely two singular members of the pencil, i.e., there are two $k$-rational points, $0,\infty \in S$, such that for $S^* = S\setminus\{0,\infty\}$, the restricted morphism $\pi^*:\mathcal{B}^* \to S^*$ is smooth and projective. Moreover, there are sections: the two base points of the pencil. So $\mathcal{B}^*\to S^*$ is the projectivization of a rank $2$, locally free sheaf on $S^*$. Note that $S^*$ is isomorphic to $\mathbb{G}_m$, and thus has trivial Picard group. Therefore, $\text{Pic}(\mathcal{B}^*)$ is a free Abelian group of rank 1, with an ample generator $\mathcal{A}$ that has degree $1$ on the geometric fibers of $\pi^*$. In particular, the pullback from $B'\times B''$ of $\mathcal{O}(3,3)$ is isomorphic to $\mathcal{A}^{\otimes 6}$. Therefore, over $S^*\times T$, the ample invertible sheaf we are trying to "halve" is $\mathcal{A}^{\otimes 6}\boxtimes \mathcal{O}_T(1).$ Thus, over each of the two standard open affines in $T$, there is a square root of $\mathcal{O}_{\mathcal{B}^*\times T}(\mathcal{D}^*)$. Hence, over each open affine in $T$, there is also the associated double cover of $\nu^*:\mathcal{C}^* \to \mathcal{B}^*\times T$ branched over $\mathcal{D}^*$. Gluing these together gives a branched cover over all of $\mathcal{B}^*\times T$.
The "discriminant divisor" $\Delta$ of $\mathcal{D} \to S\times T$ is the divisor over which the fibers of the Cartier divisors $\mathcal{B} \times T$ and $S \times \mathcal{E}$ in $(S\times T)\times(B'\times B'')$ are tangent (one can prove that $\Delta$ is a Cartier divisor using sheaves of relative differentials and the "norm" of the finite flat map $\mathcal{D}\to S \times T$). If $T$ is a sufficiently general pencil, then $\Delta$ is a smooth Cartier divisor away from finitely many points of $S\times T$, none of which is the special point $(0,0)$ parameterizing $(B,D)$, and $\Delta$ intersects $\{0\}\times T$ transversally at $(0,0)$. Thus, after deleting finitely many points from $S\times T$ (but not the special point), we may assume that $\Delta \cup \{0,\infty\}\times T$ is a simple normal crossings divisor in $S\times T$.
The family of curves, $\mathcal{C}^*\to S^*\times T$ is a family of smooth curves on the complement of $\Delta$. The fibers over geometric points of $\Delta$ are irreducible curves of arithmetic genus that have a single ordinary double point.
The family of stable curves $\mathcal{C}^*$ over $S^*\times T$ does not extend to $S\times T$. However, it does extend to codimension $1$ points after a ramified base change of order $2$. More precisely, let $u:\widetilde{S}\to S$ be the degree $2$, finite flat morphism that is &eeacute;tale over $S^*$ and is ramified at $0$ and $\infty$. Then the pullback of $\mathcal{C}^*$ to $\widetilde{S}^*\times T$ does extend to codimension $1$ points of $\widetilde{S}\times T$.
Moreover, the pullback $\widetilde{\Delta}$ of $\Delta$ to $\widetilde{S}\times T$ is still transverse to $\{0,\infty\}\times T$ at the special point $(0,0)$, and away from all but finitely many points. Thus, deleting those finitely many points, the full discriminant locus, $\widetilde{\Delta} \cup (\{0,\infty\} \times T)$, is a simple normal crossings divisor in $\widetilde{S}\times T$. Thus, now we can apply the main theorem of de Jong - Oort, "Extending families of curves", to conclude that the family of stable curves extends to a family $\mathcal{C}$ over all of $\widetilde{S}\times T$ (less the finitely many points we deleted).
Since $\widetilde{S}\times T$ is $\mathbb{P}^1\times \mathbb{P}^1$, I think this is about as explicit as possible. One thing to note: for the morphism $\widetilde{\nu}:\widetilde{C}\to \widetilde{B}$, the morphism does fail to be flat over the codimension $2$ locus of "nodes" of $\widetilde{B}$ that projects isomorphically to $\{0,\infty\}\times T$ inside $\widetilde{S}\times T$. So the coherent sheaf $\widetilde{\nu}_*\mathcal{O}_{\widetilde{C}}/\mathcal{O}_{\widetilde{B}}$ is not an invertible sheaf: it is a pure, torsion-free sheaf of rank $1$. It should not be that difficult to work out this sheaf. This would make the family $\widetilde{\mathcal{C}}$ even more explicit.