Legal cases could end immunity of groups such as Google and Twitter for content posted on their sites