The White House quickly accused Democrats of selectively leaking the emails to smear the president.