The charge will wipe out profits, but Boeing says it hopes the aircraft will resume flying this year.