He later helped to write a law that undercut the agency's enforcement efforts against large companies accused of violating federal drug laws, according to government documents and a legal analysis of the law by the DEA's chief administrative judge.