Attorney General Jeff Sessions announces the Trump administration's plan to end the Deferred Action for Childhood Arrivals program during a news conference Tuesday.  (Susan Walsh/AP)

After the Trump administration announced Tuesday that it would begin to unwind an Obama-era program that shields younger undocumented immigrants from deportation, Microsoft vowed to defend its workers in court.

The move follows a week of intensifying criticism from technology executives who strongly support the program, known as Deferred Action for Childhood Arrivals (DACA), on moral and economic grounds. The administration, however, says that DACA is unconstitutional, and it is looking to Congress for a solution to addresses the status of DACA workers, as well as broader immigration reforms.

Microsoft's president and chief legal officer, Brad Smith, said Tuesday that the company is committed to protecting its 39 employees who have DACA status, also known as “dreamers.”

“If Congress fails to act, our company will exercise its legal rights properly to help protect our employees,” Smith wrote in a company blog post. “If the government seeks to deport any one of them, we will provide and pay for their legal counsel.” Smith added that Microsoft will explore whether it can intervene directly in any such deportation case. “In short, if Dreamers who are our employees are in court, we will be by their side.”

Facebook chief executive Mark Zuckerberg wrote on his Facebook page Tuesday that the decision to end the DACA program was “wrong.” “It is particularly cruel to offer young people the American Dream, encourage them to come out of the shadows and trust our government, and then punish them for it,” he said.

Zuckerberg did not disclose how many dreamers are employed by Facebook. But his FWD.us organization, which has advocated for immigration reform, was behind an open letter last week signed by leaders of nearly 400 companies urging Congress to pass legislation to provide a permanent fix for the young undocumented immigrants. The signatories included Apple chief executive Tim Cook, business magnate Warren Buffett, fashion designer Diane von Furstenberg, Amazon CEO Jeffrey P. Bezos (who also owns The Washington Post), Facebook chief operating officer Sheryl Sandberg and Hewlett-Packard president and CEO Meg Whitman.

Zuckerberg also urged Americans to “call your members of Congress and tell them to do the right thing,” adding that “we have always been a nation of immigrants, and immigrants have always made our nation stronger."

In an email to all Apple employees obtained by The Post, Cook said, “Apple will work with members of Congress from both parties to advocate for a legislative solution that provides permanent protections for all the Dreamers in our country.” He added that Apple is working with all of its 250 "dreamers" to “provide them and their families the support they need, including the advice of immigration experts.”

Cook said in a tweet Tuesday afternoon that Apple would fight for "dreamers" to be treated as equals.

Google chief executive Sundar Pichai said in a tweet Tuesday: "Dreamers are our neighbors, our friends and our co-workers. This is their home."

In announcing the decision at the Justice Department, Attorney General Jeff Sessions called DACA an “open-ended circumvention of immigration law through unconstitutional authority by the executive branch,” and said the program was unlikely to withstand court scrutiny.

The Department of Homeland Security said it would no longer accept new applications for DACA, which has provided renewable, two-year work permits to nearly 800,000 "dreamers.”

Read more:

Analysis: Trump just handed the fate of dreamers over to a dysfunctional Congress

How big business tried to convince Congress to save the 'dreamers' from Trump