The Mishna in Avos 2:3 states:
הוו זהירין ברשות, שאין מקרבין לו לאדם אלא לצרך עצמן. נראין כאוהבין בשעת הנאתן. ואין עומדין לו לאדם בשעת דחקו
My translation:
Beware the authorities, for they embrace a man solely for own benefit. They appear friendly to him when it suits their purposes, but do not save him in his hour of distress.
I haven’t read it, but this book seems to illustrate this Mishna: “The Fatal Embrace: Jews and the State” by Benjamin Ginsberg (among related insights!).