House passes drug-tracing legislation