>I'm sure that the answer is "both of course"
IANAL, but my understanding is that the default rule in the US is "each party pays for their own lawyers, regardless of who wins"[0]. Of course, the specifics would depend on the actual terms of the settlement agreement.
[0] https://en.wikipedia.org/wiki/American_rule_(attorney%27s_fe...