Congressional Democrats fought with the U.S. defense secretary over the war and military spending in a rare public hearing.