A court in India has barred a village council from deciding the fate of Coca-Cola's controversial plant in the south of the country.