Dr. Erica Schwartz was confirmed after Health Secretary Robert F. Kennedy Jr. last year fired Susan Monarez over a clash on vaccines.