The Senate has confirmed Robert F. Kennedy Jr. as President Donald Trump’s Health and Human Services secretary.