The European Union has approved for sale the Western world's first gene-therapy drug, a type of medicine that introduces functioning genes to patients whose defective genes cause disease.

The costly drug, which treats a rare metabolic disease, is the first gene therapy to be licensed in the U.S. or Europe, though there is a gene therapy for cancer on the market in China, and many others are being tested in clinical trials.

The...