UN to rule on elections in Iraq