The Trump-appointed energy official who blamed wacko comments on hacking just resigned