Is it legal to use copyrighted works to train LLMs?

Two widely-reported court rulings in San Francisco found that employing copyrighted works to train Large Language Models (LLMs) fell within the law’s “fair use” provisions. The fact that writers brought these lawsuits shows that they felt wronged by the use of their works to train LLMs without their permission. What should we make of those rulings?