At any large employer you sign an agreement to follow the employee handbook and internal policies. They all say the same thing: don't violate the policies even if directed to by your manager.
In this case Apple's legal department had identified the serials and IMEIs as PII.
This is why the case is in civil court and not criminal (because Apple didn't violate any "laws" as you claim). It is a contract dispute.