There are multiple definitions - click on the translation that matches your context.

condena en costas

full

order to pay costs

Comparative law notes

Spain

imposition of costs on the losing party in a civil suit, usually expressed in English from the perspective of the prevailing or successful party who is “awarded costs”