On Thursday, Mr. Kalanick gave his answer, stepping down from Mr. Trump’s economic advisory council. “There are many ways we will continue to advocate for just change on immigration, but staying on the council was going to get in the way of that,” Mr. Kalanick wrote in an email to employees obtained by The New York Times.

Mr. Kalanick’s exit from the advisory council underscores the tricky calculus facing many Silicon Valley corporate chieftains who try to work with the new administration. On one hand, many tech executives have openly tried to engage with the president, a path that is typically good for business. Yet Mr. Trump’s immigration order has been so unpopular with so many tech workers — many of whom are immigrants themselves and who advocate globalization — that they are now exerting pressure on their chief executives to push back forcefully against the administration.

Thirty miles south of Uber’s headquarters, for example, Facebook employees have voiced frustration that Peter Thiel, the billionaire tech investor and adviser to Mr. Trump, still has a seat on the social network’s board. At Google, employees have staged protests against the immigration order. At Twitter’s headquarters, some employees have said they are uneasy about the president’s heavy reliance on their service to send divisive messages.

The tension over continuing to work with Mr. Trump reached a breaking point at Uber because Mr. Kalanick was, until Thursday, one of the most vocal proponents among tech chiefs of engaging with the president. As recently as Saturday, Mr. Kalanick had publicly said in a blog post that the best route forward was to have “a seat at the table.” He had added, “We partner around the world optimistically in the belief that by speaking up and engaging we can make a difference.”

Outside of the internal pressure, Uber faced other fallout from Mr. Kalanick’s stance. More than 200,000 customers had deleted their accounts.