@paok1970,
They mean the same thing generally, but there is perhaps a slight difference in nuance.
"Stood by" tends to suggest that you were with them along and didn't abandon them. You
remained by their side.
"Stood with" would be more appropriate in situations where you had no particular pre-existing alliance, but, when conflict came, you chose to support them rather than their adversary (or remain neutral).