The germans lost so many soldiers, and equipment/armory that they couldn't attack the allies again. It destroyed the German army, and lead to the end of the war.
They came on a agreement by voting, in some cases each state would get one vote and it would go from there.
Hoped this helped =)