Federal safety officials said Thursday they have identified the origin of the battery fire on a Boeing 787 Dreamliner last month, and are turning their microscopes on an aircraft approval process in which the airplane builder evidently greatly underestimated the chances of battery failure.