The United Nations said the two sides reached the “historic achievement” with an immediate permanent ceasefire deal across the oil-rich North African country.