Gruvbolag hotar med att stämma delstatsregering