Tech companies such as Facebook Inc., Apple Inc. and Alphabet Inc., which have been vocal opponents of President Trump’s travel ban but have faced criticism for years about a lack of diversity in their own hiring policies, don’t support Trump’s decision to roll back protections for the LGBTQ community.

On Wednesday, the Trump administration withdrew President Obama-era protections that let transgender students use bathroom facilities based on their general identities, rather than the gender listed on their birth certificates.

The policy, a win for social conservatives such as Attorney General Jeff Sessions who believe LGBTQ protections impede on their religious beliefs, leaves it up to the states to make their own determination. However, critics say the ruling violates Title IX, a federal law that prohibits schools from discriminating against students based on their sex.

Also Read:Trump’s tech relations sour as Silicon Valley resists immigration ban

Many tech said it stands against their views on equal rights. Apple AAPL, -3.17% , Facebook FB, -0.89% , Google GOOGL, -2.41% GOOG, -2.37% and Uber, all part of an amicus brief filed earlier this month in San Francisco of more than 100 tech companies that legally opposed Trump’s immigration order that temporarily banned travel from seven Middle Eastern and North African countries, spoke out against the policy on Thursday morning.

Apple, whose CEO Tim Cook is gay, said it believes everyone “deserves a chance to thrive in an environment free from stigma and discrimination.” When Apple spoke out against the immigration ban for the first time publicly last week, Cook said he didn’t view Apple or himself as an activist, but noted that he didn’t support the immigration ban and that some Apple employees were personally affected by it when they couldn’t return to the country after traveling abroad.

“We support efforts toward greater acceptance, not less, and we strongly believe that transgender students should be treated as equals,” an Apple spokesperson told MarketWatch in an emailed statement Thursday. “We disagree with any effort to limit or rescind their rights and protections.”

See Also:Gender diversity pays off for investors and companies, study finds

Google, which staged walkout protests at several of its campuses around the world two weeks ago to protest the immigration order and whose co-founder Sergey Brin is an immigrant from the former Soviet Union, said it is “deeply concerned to see a rollback in transgender students’ rights.”

“We’ve long advocated for policies that provide equal rights and treatment for all,” a Google spokesperson said.

Facebook, whose CEO Mark Zuckerberg and COO Sheryl Sandberg both spoke out against Trump’s travel ban, said it is “a strong supporter of equality” and stands by ensuring “equal rights for everyone, including transgender students.” The company said it planned to advocate for expanding LGBTQ rights.

Uber, which faced backlash through a #deleteuber boycott campaign until its CEO Travis Kalanick stepped down from a board advising Trump, said it is proud of its “longstanding opposition to harmful initiatives aimed at the LGBT community.”

A Harvard Business professor explains Donald Trump

Earlier this week, Uber was criticized by a former female engineering employee for not doing enough to quash sexual harassment in the workplace. Uber, accused of not penalizing harassers if they are high performers, has hired ex-U.S. Attorney General Eric Holder to review the claims.

Read:Morgan Stanley wants analysts to look at gender diversity in evaluating companies

In regards to Trump’s transgender rollback Uber said: “We will continue to speak out against discriminatory actions and in favor of good policy that champions equality and inclusion for all.”

Silicon Valley has been a staunch cheerleader of immigration because many companies recruit talent from all over the world. Tech companies are among the biggest users of the H-1B visa program, which allows high-skilled workers work in the U.S.

However, the industry as a whole continues to face criticism for employing mostly white men. Companies such as Apple, Facebook FB, -0.89% and Google have all pledged to diversify their workforces with more women and minorities – and have put programs in place to facilitate that – but data show many of workplaces are still composed disproportionately of white men.

Microsoft Corp. MSFT, -1.24% did not issue a public statement on the issue, but a spokesperson pointed MarketWatch to a tweet from Chief Legal Officer Brad Smith speaking out against the transgender policy.

And from Airbnb: