President Obama signed a massive $1 trillion spending bill Friday that will keep the government running through next September. But he wasn't totally happy about it.

Turns out the president might not follow the letter of the law in some instances where, he says, Congress overstepped its bounds and raised constitutional concerns:

Provisions barring the use of appropriated funds to transfer detainees from the military facility at Guantanamo Bay, Cuba, to the United States or foreign countries unless certain conditions are met. Obama noted "my intent to interpret and apply them in a manner that avoids constitutional conflicts" and vowed to seek their repeal. Provisions that require advance notice to Congress of certain military actions or the involvement of U.S. forces in United Nations peacekeeping missions under foreign control. Obama said he "will apply these provisions in a manner consistent with my constitutional authority as commander in chief." Provisions that "restrict or require particular diplomatic communications, negotiations, or interactions with foreign governments or international organizations." Obama said he "will not treat these provisions as limiting my constitutional authorities in the area of foreign relations."

Obama wouldn't veto the bill or send it back to Congress over these objections, lest the government shut down. But it's clear he will continue to do battle with Republicans in Congress who want to limit what they see as his freelancing in matters of national security and foreign affairs.