Leon Panetta told hundreds of Marines and sailors Congress "did a stupid thing" in risking cuts to defense.