earned, got (someone), cost, was worth, was screwed
Ese acto le valió a Andy dos semanas en el hoyo.
That act earned Andy two weeks in the hole.
— Sueño de fuga (1994)
¿Cuánto valió?
How much was it?
— El Capitán (2018)
El descubrimiento le valió el Premio Nobel de Física.
The discovery earned him the Nobel Prize in Physics.
Y luego valió verga.
And then it all went to shit.
— Ya no estoy aquí (2019)
¡Ya valió verga!
We're fucked!