I think Brazil's involvement in that was retconned. What I remember about it is something about Hungary trying to annex parts of Ukraine for whatever reason, and Poland stepping in to help Ukraine, which lead to the union. It's one of those things that didn't really make sense but have become important enough that it's too late to change it.