This is the only part that matters here. Doesn't matter how narrowly the law was complied with. Laws are the purview of lawmakers. If the lawmakers leave loopholes in their legislation all companies that can will avail themselves of these loopholes.
Blame the legislators. Those assholes left barn-door sized loopholes in their legal requirements for Apple's compliance.