The limits of its partnership with Tehran are unsurprising. But this conflict raises broader issues for the superpower