A king’s quest to protect himself from poison led to an explosion of expensive potions that were prescribed for every ailment—until officials started reining them in.