India's top court allows Hindus to build temple on disputed holy site while promising Muslims land elsewhere for mosque.