As regards late deliveries, I'd expect the contract to include penalty clauses - with the degree of novelty in the construction of the 787 these should be quite extensive.
Being 4 years late already, the penalty clauses may well be 'topped-out' by now.
Interestingly, a board member at Boeing said recently that the grounding of the Dreamliner would make 'Little or no impact' on Boeing finances. Work that one out if you can.