A quick check on Timatic indicates that Tanzania requires visitor's passport to be valid for a minimum of 6 months from the date of entry. If the validity of your wife's emergency passport was exactly 6 months (from date of issue), that would have been the reason for denied boarding.