If $f$ is a linear map (between finite-dimensional spaces), then it can be represented by multiplying by some matrix.
The fact that $f$ is $\mathfrak G$-invariant presumably means that this matrix is constant with respect to the $\mathfrak g$ used as the variable of integration.
It's easy to see that multiplying by a constant matrix is an operation you can pull out of an integral, because sums can be pulled out of integrals
$$
\int \left(f(x) + g(x)\right)\\,dx = \left(\int f(x)\\,dx\right) + \left(\int g(x)\\,dx\right)
$$
and constant factors can be pulled out of integrals
$$
\int c\\,f(x)\\,dx = c\int f(x)\\,dx
$$
and matrix multiplication is just an application of those operations.
And yes, you can say that $f$ and the integral commute with each other as operators.
(If, contra my first sentence, you aren't working with finite-dimensional spaces, then you have to tread much more carefully than I'm doing here, starting with specifying precisely what definition of integration you're using. The usual suspects still commute with linear functionals, though.)