Anthropic is preparing to sell stock to the public in a shaky moment for artificial intelligence companies. Financing costs have sharply risen. The backlash against data centers has gotten fierce.