A federal judge in California has signed off on Apple Inc.'s $30.5 million settlement in a nearly decade-old lawsuit claiming the company shortchanged 15,000 retail workers by not paying them for time spent in security checks after their shifts.