If Apple were to do anything differently at this point, people would then point a finger and say that this is due to a guilty conscience, that Apple knew what they were doing was wrong all along.
In this case, I doubt I would have done any differently where I in Apple's shoes. Just continue to do what I feel is right, see where the dice may land with regards to all the potential lawsuits and accusations coming my way, and then deal with the problems as they arise. If it's a fight the legislators want, then bring it on by all means.
As it turned out, the Epic lawsuit ultimately worked out in Apple's favour over Epic (as I predicted it would back in 2020). And with this victory, Apple will feel emboldened by its victory and will rigidly defend its practices even more. There will be zero incentive for Apple to make any further concessions to developers because its legal victory will stand as a symbol of its unassailable authority on iOS.
So a lawsuit may not necessarily end up being a bad thing for Apple in the long run.