The Lex Gabina: ancient Military Commissions Act?
Pompey did far better than our modern terror warriors: he is reported to have eliminated the pirate threat all across the Mediterranean within three months. But this was not followed by a rescinding of his powers. Rather, military jurisdiction over civilians came to be seen as normal, and political opposition to these powers came to be seen as a form of aid and comfort to rebels or pirates, and thus legally categorized alongside rebellion and piracy. Julius Caesar, followed by Augustus Caesar, would soon usurp Pompey's power, ending the Republic and creating the totalitarian Empire. (Yes, the political plot of "Star Wars" was loosely based on these all too real events).
Another parallel closer to our time was the Reichstag Fire, a terrorist attack which was followed by the Enabling Act. This statute, however, was a far more overt assumptions of arbitrary executive power and abrogation of the constitution than the Military Commissions Act.
The conversion of democratic fear into totalitarian power is a very ancient and devasting pattern.