Tehran’s growing reliance on Beijing is a consequence of the battering its missile program has had from Israeli strikes and highlights the alignment of Iran and China with Russia and North Korea.