The White House warned Tuesday night that President Obama would veto the Senate's National Defense Authorization Act for 2017 if it got to his desk in that form, as it would prevent Obama from closing the detention facilities in Guantanamo Bay, Cuba, and prescribes other polices Obama opposes.

"If the president were presented with S. 2943, his senior advisers would recommend he veto the bill," the White House said in a statement.

The statement listed the Gitmo provisions first, and said it "strongly objects" to efforts to prevent the facility's closure.

"As the administration has said many times before, the continued operation of the facility weakens our national security by draining resources, damaging our relationships with key allies and partners, and emboldening violent extremists," it said.

Republicans disagree, and have been including similar language blocking Obama's plan to close the facility in defense policy bills each year.

The statement also objected to language that would cut back Obama's National Security Council staff. Republicans have heeded warnings from the military that the NSC is too large and can sometimes act as another authority over the military.

The White House argued that cutting the staff to just 150 people would give the NSC fewer people than the combined staffs of the key congressional committees that deal with national security and foreign relations.

"Arbitrarily reducing the size of the NSC staff could impede the NSC staff's ability to coordinate interagency policy and advise and assist the president on these important issues," it said.

Elsewhere, the White House complained that the bill would undermine U.S.-Cuba military engagement, put limits on the number of senior military officials in the administration, and reorganize the Defense Department "without careful study," which it said could put at risk the administration's efforts to fight the Islamic State.