Assailed from both right and left, the social-media giants will face ever closer scrutiny