When a setoff has been pleaded or filed judgment shall be rendered in favor of the party to whom the balance is due for the amount thereof, and his taxable costs.