The officers were "removed from the street" after an investigation found troubling social media posts.