WILMINGTON, Del. — Fox News agreed Tuesday to pay Dominion Voting Systems nearly $800 million to avert a trial in the voting machine company’s lawsuit that would have exposed how the network promoted lies about the 2020 presidential election.The stunning settlement emerged just as opening statements were supposed to begin, abruptly ending a case that had embarrassed Fox News over several months and raised the possibility that network founder Rupert Murdoch and stars such as Tucker Carlson and Sean Hannity would …