A former Democrat, he served as White House counsel under George Bush and aided presidents including Ronald Reagan and Donald J. Trump.