It is not Spanish, but Latin, and can be translated as "what is fair", "with what justice". It is usually found in the term "quid iuris , quid ius".