Before the law, there was no cap on what Medicare enrollees might have to spend on medications covered by their Part D drug plans.