Are there any laws that actually govern how these enforcement agencies are meant to behave? This all seems so far above and beyond their formal mandate.
Yes, but laws don’t matter when the government refuses to enforce them against itself.