" the United States agrees that no persons except those herein so authorized to do, and except such officers, soldiers, agents, and employes of the government, or of the Indians, as may be authorized to enter upon Indian reservations in discharge of duties imposed by law, or the orders of the President, shall ever be permitted to pass over, settle upon, or reside in, the territory described in this" . . . .