The companies, which custom-make medications, may be the solution to rapidly rising prices for generic drugs.