The House has voted overwhelmingly for a $570 billion defense bill that limits President Barack Obama's authority on handling detainees at the U.S. prison at Guantanamo Bay, Cuba.

The vote was 340-73 on Friday for an election-year measure that also would impose new curbs on the National Security Agency's spying.

Overall, the bill would provide the money for military personnel, aircraft, ships and conflicts in Iraq and Afghanistan.

The Pentagon had proposed several cost-saving moves, including base closings and retirement of aircraft. Congress resisted as lawmakers protected favorite programs.

Republicans were angry with Obama's swap of five Taliban leaders from Guantanamo for American Sgt. Bowe Bergdahl, who had been held captive for five years. They backed new restrictions on transferring detainees.

More From Newstalk KGVO 1290 AM & 98.3 FM