Boeing ailing defense unit on Wednesday recorded a $2.8 billion charge, but the U.S. plane maker stuck to its forecast of generating cash this year despite struggling to raise commercial jet production due to labor and supply shortages.