The move reflects a widening confrontation with Saudi Arabia and a fundamental realignment of alliances.