X removed thousands of posts and accounts following government action over AI-generated explicit images.