President Obama’s attack, in a speech during a lunch with editors and reporters from The Associated Press, was part of a broader indictment of the Republican economic blueprint for the nation.