They weren't just given permission I'm sure. A lot of development happened on closed off circuits, and only after those passed could they file a request.
And if that request included "All tests will be done under supervision of a driver that will intervene in case of issues", then... why not?
Plus, if California didn't approve it, these big companies would move their operations to a state that did approve it.