Social media companies would have to make public their policies for removing problem content and give detailed accounts of how and when they remove it, under a proposal being considered by California legislators who blame online chatter for encouraging violence and undermining democracy.