Tri-City Cardiology, a Phoenix-area physician group, has agreed to pay millions to resolve allegations of unnecessary care.