The law seeks to add transparency to the federal drug pricing program and to stop drug manufacturers from restricting who can dispense their medications.