Lawmakers in California have introduced a sweeping privacy bill that could reign in the power of their Silicon Valley neighbors.