I am not a Lawyer, but my understanding is:
The wording of the CSAM law is that content should be scanned when uploaded. That condition "upon upload" triggers the 3rd party doctrine.
Apple has gone above and beyond here, not the actual US gov. So, the bill of rights doesn't apply to Apple's decision to scan content on device, just before it is uploaded.