The court did not say AI generated images are not eligible for copyright. They said machines cannot be assigned copyrights. That’s because only humans are eligible.
If you are a human who creatively uses a tool to generate something, you’d get copyright protection.