The proposal at first was controversial because of the thriving illegal drug trade: Peru is the world’s second largest producer of coca leaves — the source plant for cocaine — and some worried that drug gangs would branch into the marijuana business.