Talking about this in the continuous world is a bit of a challenge because of the Dirac delta function. It's far easier to exemplify this in the discrete world with a Kronecker delta (which actually came before the Dirac delta), and then attempt to extend it to the continuous case.
The IDFT is defined as
\begin{equation}
x[n] = \sum_{k=0}^{N-1}X[k]e^{j2\pi\frac{kn}{N}}
\end{equation}
If we let $X[k] = c$, we can say
\begin{equation}
x[n] = c\sum_{k=0}^{N-1}e^{j2\pi\frac{kn}{N}}
\end{equation}
Since each of the DFT basis functions are periodic within the DFT window, and the integral of any oscillatory function with zero mean over exactly one period is zero, it is readily verified that
\begin{equation} x[n] =
\begin{cases}
cN & n = 0 \newline
0 & else
\end{cases}
\end{equation}
So, the proof that, for the discrete case, the autocorrelation function of white noise is a Kronecker delta is pretty trivial. However, it is not so trivial for the continuous case. As you point out, the integral of a constant diverges. However, you seem to assume that the definition of the delta function is
\begin{equation}
\delta(t) = \begin{cases} \infty & t=0 \newline 0 & else \end{cases}
\end{equation}
but this is not the case. The actual definition of the delta function is
\begin{equation}
\int_{-\infty}^{\infty}f(x)\delta(x)dx = f(0)
\end{equation}
That is to say, the delta function integrates to one and effectively samples the function being multiplied by the Dirac delta.
If we have
\begin{equation}
G(\tau) = \int_{-\infty}^{\infty}S(\omega)e^{j\omega\tau}d\omega
\end{equation}
it is true that $G(\tau)$ diverges $\forall \, \tau$. However, at $\tau = 0$, $G(\tau)$ blows up to $\infty$, but for $\tau \neq 0$, the integral oscillates about zero. The idea that is that we assume that an infinite length function with finite period is periodic within an infinite length window, and therefore integrates to zero if this function has zero mean. So, you achieve the second definition of the Dirac delta function when you integrate over an infinite period.
This is a pretty informal treatment of the Dirac delta function, but one suitable for the signal processing stack exchange. Technically, the delta function is a distribution. A proof using this more rigorous notation is given by this answer on the math stack exchange.
EDIT Response to comments
The best way to recognize, in my opinion, that the delta function integrates to one is to view it from the perspective of a standard normal distribution. The standard normal distribution is defined as
\begin{equation}
\mathcal{N}(\mu,\sigma^{2}) = \frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{(x-\mu)^{2}}{2\sigma^{2}}}
\end{equation}
If we allow the mean to be 0 and take the limit of the distribution, we find that
\begin{equation}
\delta(x) = \lim_{\sigma^{2}\rightarrow 0} \frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{x^{2}}{2\sigma^{2}}}
\end{equation}
We know that this integrates to one because all probability density functions integrate to 1.