The judiciary doesn't just rule on the constitutionality of laws (actions by the legislature) but also actions by the executive, for example vaccine mandates.
Sure, but the CIA has existed since 1947- if it were illegal for them to gather information on citizens from companies who willingly give it up (for free or for sale), it would've already been decided and would apply to today's data.