Surprising court ruling in California