A bill introduced in the Legislature would also prevent social media companies from banning users who violate their rules.