Court OKs $2.5M purchase of idled ethanol plant in Ind.