Breakthrough in junior doctors' dispute