The suit appears to be an effort to investigate an election the president lost.