J. Michael Luttig, a conservative former judge, has emerged as an unofficial legal adviser of the Donald Trump era.