Top Republicans on the Senate and House armed services committees went so far as to accuse President Obama of having broken the law, which requires the administration to notify Congress before any transfers from Guantanamo are carried out.

“Trading five senior Taliban leaders from detention in Guantanamo Bay for Bergdahl’s release may have consequences for the rest of our forces and all Americans. Our terrorist adversaries now have a strong incentive to capture Americans. That incentive will put our forces in Afghanistan and around the world at even greater risk,” House Armed Services Committee Chairman Howard P. McKeon (R-Calif.) and the ranking Republican on the Senate Armed Services Committee, James M. Inhofe (Okla.), said in a joint statement.

Lawmakers were not notified of the Guantanamo detainees’ transfer until after it occurred.

The law requires the defense secretary to notify relevant congressional committees at least 30 days before making any transfers of prisoners, to explain the reason and to provide assurances that those released would not be in a position to reengage in activities that could threaten the United States or its interests…

A senior administration official, agreeing to speak on the condition of anonymity to explain the timing of the congressional notification, acknowledged that the law was not followed. When he signed the law last year, Obama issued a signing statement contending that the notification requirement was an unconstitutional infringement on his powers as commander in chief and that he therefore could override it.