The trauma of Sept. 11, 2001, gave rise to a dangerous myth that, to be safe, America had to give up basic rights and restructure its legal system. The United States was now in a perpetual state of war, the argument went, and the criminal approach to fighting terrorism — and the due process that goes along with it — wasn’t tough enough.

President George W. Bush used this insidious formula to claim that his office had the inherent power to detain anyone he chose, for as long as he chose, without a trial; to authorize the torture of prisoners; and to spy on Americans without a warrant. President Obama came into office pledging his dedication to the rule of law and to reversing the Bush-era policies. He has fallen far short.

Mr. Obama refused to entertain any investigation of the abuses of power under his predecessor, and he has been far too willing to adopt Mr. Bush’s extravagant claims of national secrets to prevent any courthouse accountability for those abuses. This week, he is poised to sign into law terrible new measures that will make indefinite detention and military trials a permanent part of American law.

The measures, contained in the annual military budget bill, will strip the F.B.I., federal prosecutors and federal courts of all or most of their power to arrest and prosecute terrorists and hand it off to the military, which has made clear that it doesn’t want the job. The legislation could also give future presidents the authority to throw American citizens into prison for life without charges or a trial. The bill, championed by Republicans in the House and Senate, was attached to the military budget bill to make it harder for Mr. Obama to veto it.