Federal drug testing has come into conflict with states that have legalized cannabis.