Internal messages show Phoebe Gates and Sophia Kianni knew months before Phia’s $35 million Series A that its affiliate technology could take credit for purchases it may not have generated.