Company that funded litigation joined as party and ordered to pay costs