The Senate on Thursday confirmed Dr. Mehmet Oz, the celebrity TV doctor, 53-45 and mostly along party lines to lead Medicare and Medicaid, which insure nearly half of all Americans.