Court rules on costs in complex landlord-tenant dispute