A president accustomed to dictating the terms of the debate misjudged the politics of the Nvidia scandal and is learning lessons about the limits of his power in a post-midterm Washington.