Erindi turns to court to halt mining operations