The agreement followed an expansive meeting in Saudi Arabia. It was not immediately clear whether its terms would be acceptable to Moscow.