Welsh rugby agree historic standard contracts after strike threat