In a near party-line vote, Robert F. Kennedy Jr. was confirmed as the Trump administration's Health and Human Services secretary on Thursday morning. He was sworn in later in the afternoon.