He had concluded he was above the law, after dodging accountability for flouting rules and withstanding the Mueller investigation. He had grown so confident of his own power, and cocksure that Republicans in Congress would never dare break with him, that he thought he could do almost anything. The result was a historic test for America’s institutions and the very durability of its democracy.