It *was* settled. They all knew as they were trying him that this would happen.
Politicians in both parties take actions and pass laws to get political support like the DA in Montgomery County did with Cosby.
The Democrat DA promised prosecution that a Republican DA declined.
He broke rules in the process but got the political success he wanted.
Republicans pass all kinds of laws in the leadup to the next election cycle that will be challenged in court on abortion, transgenderism, critical race theory etc. etc.
The court fight may be lost but the political support is obtained by passing the laws.