WASHINGTON — As President Trump prepared on Friday to sign a $1.3 trillion spending bill, just hours after threatening to veto it, he offered a few misleading and selectively worded claims to explain why he was reluctantly authorizing the legislation.

“We looked at the veto. I looked very seriously at the veto. I was thinking about doing the veto,” Mr. Trump told reporters at the White House. “But because of the incredible gains that we’ve been able to make for the military, that overrode any of our — any of our thinking.”

But his explanation did not accurately describe just why those gains were enough to ultimately approve the spending bill. Nor did it correctly demonstrate why the legislation did not include programs that he had prioritized. Here’s a fact-check.