We know that, for one molecule of ideal gas,
$U = \text{Kinetic energy} = \frac{f}{2}RT$
where $f$ is the number of degrees of freedom, $R$ is the gas constant and $T$ is the absolute temperature.
So we get that $$\mathrm{KE}\propto \frac{f}{2}T$$
But, according to the Kinetic interpretation of temperature, All the gases with the same temperature have the same average kinetic energy per molecule irrespective of atomicity, but degrees of freedom depend on atomicity, so how is this statement valid? Is it that they are considering only translational KE? If so then why does rotational Kinetic energy not impact the temperature of the gas?