Complex sentence: In spite of this, such contracts continue to be popular despite a history of failed or troubled projects, though they tend to work when costs are well known in advance.
Split into simpler sentences: In spite of this, such contracts continue to be popular. Fixed-price contracts tend to work when costs are well known in advance.