The "Protection of Pakistan Bill 2014" empowers an official of grade 15 (Non Gazetted Officers/Junior Officers/ JCOs) and above to issue such orders.
It also allows a suspect to be kept under detention for a period of 60 days after getting judicial remand.
Under the act, security forces can conduct search operations without securing warrant from a judicial officer.
To allay apprehensions of rights groups, it envisages detention centre under the supervision of courts and provisions for judicial inquiry, if anyone was killed by security agencies under its ambit.
More From This Section
Cybercrimes and offences related to information technology, as well as the crossing of national boundaries illegally have been included in the list of scheduled offences. Punishments under these offences can be extended to 20 years.
The bill was adopted with the Pakistan Peoples Party (PPP) voting in favour of the resolution. It will remain in force for two years.
The draft bill was introduced in the National Assembly or lower house, by Minister of Science and Technology Zahid Hamid on behalf of Interior Minister Chaudhry Nisar Ali Khan.
Hamid said the bill was of "utmost importance" due to the military operation in North Waziristan, to enable security forces to take prompt action against the rebels.
The Pakistan government had tried to negotiate a peace deal with the banned militant group to find a solution to the decade-long insurgency that has claimed over 40,000 lives.
But peace talks failed and after a series of terror attacks, including one on Karachi international airport, the government on June 15 launched an all-out offensive against foreign and local militants.
Meanwhile, Pakistan's human rights bodies and opposition criticised the bill saying it gives unbridled powers to security agencies.
Rightwing Jamaat-i-Islami opposed the bill saying it violated certain human rights provisions of the Constitution.
Cricketer-turned-politician Imran Khan's Pakistan Tehreek-e-Insaf did not participate in the voting.