The key to presidential elections is the US Constitution, not the courts, state officials, or the media.
If the state legislature has enacted rules on the conduct of the election, no state judge can alter them. The Constitution gives the state lawmakers that role alone.
The election can be moved to the House. In that case, the GOP and Democrat delegations will vote, not individual Democrats versus individual GOP. More delegations are GOP.
Thus the issue has been decided already. Trump will remain president.