The Senate voted Thursday morning to confirm Robert F. Kennedy Jr. to serve as Health and Human Services secretary.