Stanchions are inexpensive. You'll want to make sure they're class legal, but you can order them from Garhauer for about $25 each.
I'm not sure I understand how they came apart, but if there has been any stress at all, the metal will be fatigued. Any repair will just be a band-aid. I would advocate replacing them.