Iran conflict is reshaping alliances in a way neither America nor Israel foresaw