President Donald Trump signed a $1.3 trillion spending bill on Friday just hours after threatening to veto it, saying he was unhappy with parts of it but that it was necessary to fund the military.

‘WE HAD NO CHOICE’

After tweeting he was considering rejecting the spending bill, Trump said at a White House appearance “we had no choice but to fund our military.”

The president said he was unhappy with the overall spending level and the bill’s inclusion of just $1.6 billion in border-security funds, after he requested $25 billion for his proposed wall along the U.S.-Mexico border. He also criticized the short amount of time the bill was publicly available. “I will never sign another bill like this again. I’m not going to do it again. Nobody read it,” he said.

Read: Congress rushes to approve spending bill and avoid shutdown.

BLAMING DEMOCRATS ON DACA

Trump blamed congressional Democrats for not making a deal on the Deferred Action for Childhood Arrivals program, or DACA, a policy Trump ordered an end to. “The Democrats did not want DACA in this bill,” he said at the White House.

Trump had, however, rejected Democrats’ offers to pair border-wall funding with a pathway to citizenship for people eligible for the DACA program. The program protects undocumented immigrants from deportation. Sen. Dianne Feinstein, a California Democrat, tweeted that “if there is no DACA fix today it’s because the president didn’t want one.” Trump said Republicans are much more on the side of Hispanics and DACA recipients and that Democrats are “using” them.

Also see:How DACA students can get help paying for college.