Those with rare diseases and under prolonged treatment won't have to pay extra for prescription drugs that are similar to over-the-counter medicines.