Pay (someone) a back-handed compliment

To give someone a false compliment that is really an insult.

The woman paid her colleague a back-handed compliment when she told her what a good job she was doing.