India's top court has ruled a disputed religious site be given to Hindus for construction of a temple.