Alternate take and apparently unpopular opinion: the US government can simply force Apple to give them a back door to access iCloud photos directly.
What Apple has done here is both way more complicated and way more visible than necessary, while being less useful to a government. The slippery slope and capability to exploit is cloud storage.