As you notice, at the end of the 20th century we almost had this kind of "federation" when the US and its allies were the only center of power in the world. The US arrived at that point by winning an economic and cultural war. But its coalition failed to entrench itself, grew weaker and more bloated and now we are facing these dangerous rifts between different factions of humanity.
Note: in the current emotional climate this may sound like war apologism. It is not - war is unspeakably horrible for everyone involved. But this is what an impartial alien looking from an orbit would deduce about the humanity.