A federal judge in Massachusetts on Monday blocked Health Secretary Robert F. Kennedy Jr.’s recent overhaul of the nation’s childhood vaccine schedule.