A Pentagon ban of Anthropic’s technology shone a spotlight on the company, earning public goodwill and capping a stellar few months for its Claude chatbot.