applicable court rules, in a final enforcement judgment, in favor of a plaintiff on all causes of each action of the plaintiff, the court shall return to the plaintiff any bond or security posted by the plaintiff under subsection (a), plus any interest accruing during the period beginning on the date on which the bond or security was posted. (d) Effect of settlement (1) In general If an action in which a bond or security was posted is resolved by settlement between the Secretary and the plaintiff, the settlement agreement may provide for sharing of the costs, expenses, and attorney fees incurred by the parties to the action. (2) Deferral A settlement agreement under paragraph (1) may defer the resolution of costs, expenses, and attorney fees to— (A) further negotiation