Dispute over planned cuts at UHI resolved UHI and a union say they have reached an agreement that ends industrial action.