It's a unique property of ideal gases that [itex]\Delta U=mC_V\Delta T[/itex] holds for any process. The constant-volume constraint is not required. That's why I also wrote the equation as [itex]\Delta U=m(C_P-R)\Delta T[/itex], which similarly doesn't mean that constant pressure is required just because the constant-pressure specific heat appears. Again, [itex]C_V[/itex] and [itex]C_P[/itex] are just acting as constants, and do not represent constraints on the equation. It's hard for every thermo student to get used to this, but that's how it is.