Eric Holder, President Barack Obama’s attorney general, has been castigated by liberals and conservatives for his decisions about prosecuting terrorism suspects in criminal courts, defending a law that effectively bans gay marriages and then dropping it, and efforts to go after fraud in the financial markets that have resulted in few senior corporate executives going to jail.