A law that protects social media platforms from liability for what gets posted on their site has come under fire.