The former president loses a landmark legal bid to shield him from charges of election fraud.