Edit
It turns out that this theorem is a variation of Lemma 3.1 in section 3, chapter 8, of the book Introduction to Stochastic Control Theory by Karl J. Astrom (1970). Its proof can also be found in the same place in the book.
Using @JamieAlizadeh's idea in the comments that
$E[f(X,u)]$ is just a function that maps elements of $\underline{u}$ to $\mathbb R$, so for an arbitrary $u^o \in \underline{u}$, you must have that $$E\left[f(X,u^o)\right] \geq \min_{u} E[f(X,u)]$$
here is an expansion of the proof with some commentary. Suppose that $u^o(x)$ minimizes $f(x,u)$. This would mean that, for every $x$, $$\min_u f(x,u) = f(x,u^o(x))$$ Let $X$ be a random vector. Then, $$\min_u f(X,u) = f(X,u^o(X))$$ This is because every realization of $X$ will satisfy this equality. Next, we can compute the expectation of both sides of this equality with respect to $X$ to get $$E_X\left[\min_u f(X,u)\right] = E_X[f(X,u^o(X))]$$ Now let $$g(u) = E_X[f(X,u(X))]$$ Note that the $u$ appearing in $g(u)$ is a function of $X$, such that the function $g$ maps elements of $\underline{u}$, the set of functions $u$ that are a function of $X$, to a real number. We can see that the equality above becomes $$E_X\left[\min_u f(X,u)\right] = g\left(u^o\right)$$ Then, by definition,
\begin{align}
g\left(u^o\right) &\geq \min_{u \in \underline{u}} g(u) \\
&= \min_{u \in \underline{u}} E_X[f(X,u(X))]
\end{align}
which completes the proof that $$E_X\left[\min_u f(X,u)\right] \geq \min_{u \in \underline{u}} E_X[f(X,u(X))]$$ when $u^o(x)$ minimizes $f(x,u)$.
For convenience, here is some commentary on the second part of the proof of the theorem. Namely, the proof that
$$
E_X\left[\min_u f(X,u)\right] \leq \min_{u \in \underline{u}} E_X[f(X,u(X))]
$$
Let $v \in \underline{u}$, which means that $v$ is a function of the random vector $X$. Then, for every $x$,
$$
\min_u f(x,u) \leq f(x,v(x))
$$
Because this inequality is true regardless of the value of $x$, then we can say that
$$
\min_u f(X,u) \leq f(X,v(X))
$$
We then take expectations of both sides of this inequality with respect to $X$ (which is a monotone operation) to get
$$
E_X\left[\min_u f(X,u)\right] \leq E_X\left[f(X,v(X))\right]
$$
As before, let $g(u) = E_X[f(X,u(X))]$, such the inequality above becomes
$$
E_X\left[\min_u f(X,u)\right] \leq g(v)
$$
Additionally, note that the left-hand side of this inequality is a constant. Therefore, let $c = E_X\left[\min_u f(X,u)\right]$. The inequality above then reduces to
$$
c \leq g(v)
$$
This inequality states that the constant $c$ on the left-hand side is always less than or equal to $g(v)$, regardless of the function $v \in \underline{u}$. Therefore, if we choose $u$ to be from the set $\underline{u}$, and to minimize $g(u)$ from this set, then the inequality above does not change, which leads to
$$
c \leq \min_{u \in \underline{u}} g(u)
$$
Replacing $c$ and $g(u)$ with their respective definitions leads to
$$
E_X\left[\min_u f(X,u)\right] \leq \min_{u \in \underline{u}} E_X[f(X,u(X))]
$$
which completes the proof of the theorem.
Intuitively, what this theorem is stating is that, given that $$\min_u f(x,u)$$ exists, then the minimization of $E_X[f(X,u)]$ with respect to all functions $u$ that are restricted to be a function of the random vector $X$ is equivalent to the minimization of $f(X,u)$ with respect to all functions $u$ averaged over all possible $X$.
For a more general theorem, see:
- https://mathoverflow.net/a/108007/311484
- https://mathoverflow.net/a/316540/311484
- https://mathoverflow.net/a/245303/311484