Boston Scientific Corp. and its subsidiaries, Guidant LLC, Guidant Sales LLC and Cardiac Pacemakers Inc. (Guidant), have agreed to pay $30 million to settle allegations that, between 2002 and 2005, Guidant knowingly sold defective heart devices to health care facilities that in turn implanted the devices into Medicare patients.