Indonesia's government has reached an agreement with Freeport Indonesia to halt operations at the Grasberg mine to the search for trapped workers.