Anti-Israel activists have built cases against scores of soldiers based on their social media posts about serving in Gaza.