Backers of the measure said they expect California to follow suit, and hope similar laws will be adopted nationally.