Beijing gains impact and will help Tehran evade U.S. sanctions.