Anthropic said it would commit 5% of its shares to a new public benefit fund, as debate intensifies over how the growing wealth generated by artificial intelligence should be distributed.