During a sometimes contentious confirmation hearing, Robert F. Kennedy Jr. refused to confirm that he believes vaccines do not cause autism.