Rapidly increasing the mass of an object won't immediately decrease it's velocity if it's already in motion in space...there is no drag or rolling resistance to worry about.That assumes that ramping the mass back up doesn't drop the velocity back down, or that it's possible to ramp the mass up to ridiculous levels, or so on.
So if it were possible, rapidly increasing the mass of a projectile after launch would be a powerful tool. But I don't recall seeing any mass INCREASING tech in Star Trek, just mass lightening.