U.N. welcomes agreement on elections in Somalia