The parties to a civil action may, as part of a settlement of the action, agree to the payment of costs of the action.