Six years of worrying about bird flu did much to prepare the United States for the current swine flu outbreak, federal officials and an independent monitoring group said Thursday, but they cautioned that there were still gaps in planning.