A new Broken Hill mining agreement looks set to secure the city's historic mining industry for the next five decades.