The vote was a key part of the 2005 agreement ending Sudan 's north-south civil war .