Vito had to good sense to realize he would lose political and judicial support if he went into drugs the same way he went into women, gambling and labor unions, but Sonny did not.
When Vito realized he couldn't hold off the drug trade any longer, he quickly agreed to provide the very protection he had just said that he wouldn't be able to provide for the drug trade. We're given no reason to think that he was unable to provide it.