Iran on Thursday welcomed a ceasefire and hostage-release deal between Hamas and Israel as a "victory" for Palestinians and a "defeat" for Israel.