Supreme Court rules homebuyers can reclaim full investment