Marc Benioff, the chief executive of Salesforce, has pitted himself against Jack Dorsey, the chief executive of Twitter and Square, by spending millions of dollars to fund campaigns promoting the passage of a homelessness benefits initiative in the city.