Former South Australian opposition leader David Speirs has pleaded guilty to charges of supplying drugs to two people.