Rival parliaments fail to back UN-endorsed gov't