The Conservative leadership hopeful has been criticised for taking the drug because of policies he backed as justice minister.