Relevant court upholds challenges to the result = relevant result overturned.
Depending on the system in the particular state that may or may not influence the electoral college final result. If enough electoral college votes go a different way to predicted based on initial ballot counts being challenged and proven in court then it gets interesting.
I know the democrats were looking at (wargaming) using the military to oust trump if he won the electroal college votes and Biden won the poplar vote.