Firm that bought Bakri family home from third party did not do so 'in good faith,' judges rule, allowing Palestinians to return to compound after 18 years