The feds have gotten around the intent of the legislation by taking people with military training and military weapons, and calling them "civilian law enforcement".
I would welcome somebody filing a "if it walks like a duck and quacks like a duck" lawsuit, on the assertion that any federal employee who uses military weapons and tactics for law enforcement is in violation of Posse Comitatus.
“military weapons”
What is a military weapon?