Ruling seen as victory for California employers