The California Supreme Court in a decision delivered on Thursday found Apple broke state law by not paying retail workers for the time they spent participating in mandatory bag and device searches, leaving the company liable for millions in unpaid wages.