WASHINGTON (AP) — Congress sent President Barack Obama a $607 billion defense policy bill Tuesday that bans moving Guantanamo Bay detainees to the United States — something Obama has been trying to do since he was sworn in as president.

The Senate's 91-3 vote gave final legislative approval to the measure. The House overwhelmingly passed it last week, 370-58.

Obama does not like the Guantanamo provisions, but White House press secretary Josh Earnest said Obama will sign the bill.

"The president believes closing that prison is a national security priority. The president is not the only person that shares that view," Earnest said, citing former secretaries of state who served in both Republican and Democratic administrations.

Earnest said that Obama's decision to sign the bill — because it includes provisions that are important to running and protecting the country — does not change his position about wanting to close the prison.

More From KROC-AM