Iran declares victory and Israel holds its ground as US framework deal faces first test