It's most likely the case that in 1, 3, 5 years, Copilot won't be spitting out code blocks verbatim. It will generate rightsize code, trained on lots of publicly available code, and start reducing the surface area required to code/develop.
Stable Diffusion doesn't get in trouble right now because the artwork looks like permutations of different works; text is easy to copyright, style is more challenging, but artists are facing up against the same reality. There's no rolling this back; ML models are going to remove a ton of cruft from creative/labor based endeavors, and people are going to need to evolve to stay relevant.