A California bill would make it harder for companies like Uber to take advantage of workers. Other states should borrow the idea.