Yes, but both are examples of the EU not actually wanting to do the right thing, even if the courts say so. Privacy shield was shot down by Schrems in court, only to be replaced by the EU mumbling about "standard contract clauses, just do the same as before". No billions in penalties in sight.
Same for the Apple (and others') taxes in Ireland: While the Irish have been told by courts and the rest of Europe to collect the taxes they are owed, they just refuse to do so.