Complex sentence: Just before Barker's case went to court, he withdrew the case, the court declared Hallstrom the prevailing party and Barker was ordered to pay Hallstrom's legal fees.
Split into simpler sentences: Just before Barker's case went to court, he dropped his suit. The court declared Hallstrom the prevailing party and ordered Barker to pay Hallstrom's legal fees.