Arab countries agree to end years-long feud with Qatar that divided Gulf