Legislation would allow tracking of drug found in cold medicine