Here's a simplified example.
"The lion is hungry and Alice is afraid. So it is with Bob."
There are at least two possible interpretations.
On the one hand, the word "it" might have its usual meaning, that is, the word "it" refers to the most recent subject that isn't a "he" or a "she", in this case the lion. In that case "So it is with Bob" means "Therefore the lion is with Bob".
On the other hand, the interpretation of "So it is with Bob" might be "Bob is also afraid". This is harder to analyze. One might say "it" refers to the state of affairs "that Alice is afraid", and "So it is" means "It is so" or "it is true", which means "That Alice is afraid is true" or "It is true that Alice is afraid". One might say that "with Bob" has the effect of replacing the old topic "Alice" with the new topic "Bob".
I think it is easier to learn that "So it is with (something else)" has a possible interpretation "The same thing is also true about (something else)".