Two cases will determine if social media companies including Google and Facebook can be sued for the content they host