The artificial intelligence firm Anthropic announced it will commit 5 percent of its shares to its new public benefit fund as the industry faces heat over its potential impact on society and the labor market.