The home secretary has accused the Conservative Party of "opportunism" for opposing her bid to extend the amount of time terror suspects can be detained without charge.