The California governor says it’s unnecessary and illegal.