If they're looking for a load of meth, it's fair game.
The law itself - https://calmatters.digitaldemocracy.org/bills/ca_201520160sb... - doesn't specify immigration purposes.
https://www.404media.co/ice-taps-into-nationwide-ai-enabled-... also indicates a number of specific requests had "immigration" as the given reason.
If they're looking for a load of meth, it's fair game.