A showdown between two drug companies, one that gives away a treatment for a rare disease and another looking to profit from it, illustrates the growing tension over the rising prices of drugs.