 TriNet Group Inc. said late Thursday it had entered an agreement to acquire human-resources and payroll platform Zenefits from investment firm Francisco Partners for an undisclosed amount of stock and cash. 