Both Republicans and Democrats are preparing for a potentially lengthy battle in the courts over the results of the 2024 election