On Friday, Trump did it anyway. Stepping to a microphone in the Rose Garden, the president told reporters he was invoking his powers to declare a national emergency, then acknowledged what his lawyers had been warning him: He will get sued and, at least initially, will probably lose.

AD

The remarkable moment, people familiar with the matter say, marked the culmination of months of heated internal deliberations between the White House Counsel’s Office, the Justice Department, the Office of Management and Budget, lawmakers and the president over how to fund the wall.

AD

Trump — who had vacillated on whether the dramatic step was the right one — told reporters that he was deeply frustrated his wall hadn’t been funded earlier in his administration and was setting that right.

“But we’re stepping up now,” Trump said. “We’re getting it done.”

The announcement was greeted immediately with promises of legal action from states, lawmakers and advocacy groups. Inside the Justice Department’s civil ­division, lawyers braced for what has become a grim reality in the Trump administration: They would be in court again soon, fighting an uphill battle.

AD

White House lawyers, including White House Counsel Pat ­Cipollone, had repeatedly warned Trump of the legal risks of proceeding. On Friday, some White House lawyers were frustrated — and still skeptical of the commander in chief’s rationale, according to people familiar with the matter who, like others, spoke on the condition of anonymity to discuss internal deliberations.

AD

“Look, I expect to be sued,” Trump said in the Rose Garden, adding later that “they will sue us in the 9th Circuit, even though it shouldn’t be there, and we will possibly get a bad ruling, and then we’ll get another bad ruling, and then we’ll end up in the Supreme Court, and hopefully we’ll get a fair shake and we’ll win in the Supreme Court.”

Building a wall on the southern border was a cornerstone of Trump’s presidential campaign, and even before Democrats took control of the House, he had stewed over his inability to make it a reality. The tension came to a head in a March meeting in the White House residence, when Trump learned that his aides had secured only $1.6 billion for border fencing in an omnibus spending bill.

AD

Trump fumed to then-House Speaker Paul D. Ryan (R-Wis.) that the funding was a fraction of what he would need and threatened not to sign the measure, according to two people with knowledge of the conversation.

AD

“We gave you what you wanted!” Ryan shot back, the people said.

Swearing profusely, Trump said that was not true and asked Ryan who had relayed such a message. Ryan said it was Trump’s own aides who negotiated the bill.

Around that time, aides put out a statement saying the president would sign the bill. That sent Trump into a rage. At one point, he declared the aides did not represent him and the statement should be rescinded, the people said. He was eventually convinced by his equally angry chief of staff, John F. Kelly, to sign the measure — although he remained furious with Ryan and his own team.

AD

Soon thereafter, Trump told aides he had to find a way to get his wall without Congress.

While the emergency declaration was controversial internally, it was not without its supporters, people familiar with the matter said. Acting White House chief of staff Mick Mulvaney was a particularly aggressive advocate, having initially formulated the idea in his role as director of the Office of Management and Budget and presented the president with a lengthy memo describing how it would work, the people familiar with the matter said.

AD

As is normal in cases of national emergency, the Justice Department’s Office of Legal Counsel also reviewed the declaration for “form and legality,” and ultimately gave its blessing, people familiar with the matter said.

AD

The legal defense of the declaration, though, is expected to be difficult. White House and Justice Department lawyers are planning to challenge in particular the legal standing of those who plan to sue, and they are contemplating ways to keep the case out of courts that might be unsympathetic to the administration’s position, officials said.

The administration told surrogates on a call Friday morning that they are looking for ways to stop California, in particular, from bringing a lawsuit. Such a suit would likely come in the Court of Appeals for the 9th Circuit, where the Trump administration has seen a series of legal defeats.

AD

Mulvaney told reporters Friday that the declaration would give Trump access “to roughly $8 billion worth of money that can be used to secure the southern border,” and that the dramatic step was necessary because Congress wouldn’t act.

AD

Trump did sign a spending bill Friday that averted a second government shutdown over the border wall standoff, though the deal included less than a quarter of the money Trump had wanted for the wall. For a time, his signature seemed in doubt.

After a briefing from Homeland Security Secretary Kirstjen Nielsen and others Thursday on details of the final deal, Trump suggested he would not sign — which potentially would have caused another shutdown.

Trump was persuaded to stay on board, but he said he would also declare a national emergency, something Republican leaders had urged him to avoid. Senate Majority Leader Mitch McConnell (R-Ky.) told the president he would encourage others to support the emergency declaration so the president would sign, according to people familiar with the conversations.

AD

AD

“President Trump’s decision to announce emergency action is the predictable and understandable consequence of Democrats’ decision to put partisan obstruction ahead of the national interest,” McConnell said in a statement Thursday. “I urge my Democratic colleagues to quickly get serious, put partisanship aside, and work with the president and our homeland security experts to provide the funding needed to secure our borders as we begin the next round of appropriations.”

Trump argued in the Rose Garden that declaring an emergency was necessary because narcotics were pouring across the border. “We’re talking about an invasion of our country with drugs, with human traffickers, with all types of criminals and gangs,” he said. But he also seemed to undercut his own case on the urgency of the problem.

“I could do the wall over a longer period of time, I didn’t need to do this, but I’d rather do it much faster,” he said.