The Scottish government was ordered to pay a portion of For Women Scotland's legal costs after losing the court battle in April.