A rail union has claimed a “substantial victory” for its members on London Underground in a pay dispute.