Robert F. Kennedy Jr.’s repeated support for vaccines during Senate confirmation hearings follows a long history of disparaging them.