Panama's government has nearly approved a new bill revoking a controversial mining contract