Australia's High Court says government acted within its rights when it passed a law revoking 99-year lease for site.