WASHINGTON (AP) — The Republican-led House has voted to condemn President Barack Obama for failing to give 30-day notice to Congress about the exchange of American prisoner Bowe Bergdahl for five Taliban leaders.

The vote on Tuesday was 249-163 for the nonbinding resolution. Democrats label the vote an election-year, partisan attack that is ill-timed considering Obama's effort to rally support for combatting Islamic State militants. Republicans insist that Obama clearly violated a law requiring the administration to notify Congress 30 days before transferring prisoners from the Guantanamo Bay prison.

In May, five senior Taliban were released from the U.S. prison in exchange for Bergdahl, a soldier who disappeared from his post in eastern Afghanistan on June 30, 2009.