If you want to take a moral stance to not do your job, you quit. You can give a long, eloquent speech if you want. You can write an essay about why you quit. You can start a gofundme. But you do not get to refuse to do your job and keep drawing a salary. That is trying to make a moral stance without a cost. It has nothing to do with Apple having better lawyers, and everything to do with the engineer not understanding what a job is, or what a moral stance is. The moral stance part is where you forego the income from doing something you disagree with, not refusing to do it and getting to keep the income.
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.
according to the article, he alleges Apple was doing something "without required customer releases"; there's at least the implication that a regulation is being broken, do you know something extra about this?