After a while they would eventually stop looking up solutions and just ask their peers for some advice/code review. My job became surprisingly easy when I started treating students like adults.
In fact, I'd argue that in the case of the solutions being shared publicly, at least everyone can benefit equally instead of only those who are part of the clique doing the sharing.
The only real answer is to either write new assignments each year, OR, simply assume that all students will have the solutions to the assignments.
A good way to tell if students are really doing the homework is to have a 10 minute homework quiz in class where the students answer a question very similar to a homework problem. Those who have truly done the homework will be done quickly and those who haven't will struggle mightily.
the budget / resources doesn't exist for that
For example, the cs225 course provides an image processing library, and you need it for the assignment, so if you put the library in the repo they DMCA'd.
Similarly, many courses give you a framework of code. If you filled in the framework they would DMCA.
They did this a bit, but there was a pretty massive back lash. I don't think they are doing it atm
To be really tested, it'd have to go to court.
I noticed when searching a lot of solutions were still up for this course, so maybe the solutions alone are OK, and it's only the base code being DMCAed. That said, there is a lot of base code still up too, so it's likely that this person just hasn't come around on their whack-a-mole cycle yet.
If you search for cse131 you'll find a bunch of repos still up.
This kind of whack-a-mole is typical of DMCA and requires a lot of resources to manage.