The White House explored declaring a national emergency to address alleged vulnerabilities in voting machines before Trump ousted leaders of the election commission, a report has found.