To prohibit state agencies, local governments and their employees from assisting or providing material support to a federal agency in collecting electronic data or metadata concerning any person, except with a warrant (or under a legally recognized exception to a warrant), or with an individual's informed consent, or if the information had been collected legally by a state or local agency.