A federal judge has blocked Health Secretary Robert F. Kennedy Jr.’s overhaul of vaccine recommendations for the nation’s children.