The deal is seen as a win for Riyadh as it is embroiled in a regional crisis triggered by the Iran war.