Congressional leaders on Thursday reached a deal to extend by four years several statutes that expanded the Federal Bureau of Investigation’s counterterrorism and surveillance powers after the terrorist attacks of Sept. 11, 2001, aides said.

Under the deal, two sections of the so-called USA Patriot Act and a third provision from a related intelligence law would be extended, without any changes, until June 1, 2015. The provisions had been set to expire later this month.