A controversial mine which caused one of Spain’s biggest ever environmental disasters is set to reopen, the government has announced.