SAN FRANCISCO ( — San Francisco’s mayor is banning city workers from traveling to North Carolina unless it is necessary in protest against the state’s new law that blocks LBGT rights.

Mayor Ed Lee wrote in a statement Friday that residents in the city with a large gay and lesbian population “will not subsidize legally sanctioned discrimination.” He said the new law turns back the clock on civil rights protections.

READ MORE: Cessna Citation 680 Makes Emergency Landing At Riverside Airport After Windshield Breaks

Gov. Pat McCrory Wednesday signed a sweeping law that denies anti-discrimination protections for lesbians, gays and transgender people.

The law blocks cities and counties from passing anti-discrimination rules and imposes a statewide standard that leaves out protections based on sexual orientation and gender identity.

The legislation voided a Charlotte ordinance that would have allowed transgender people to legally use restrooms aligned with their gender identity.

Technology giants Apple, Google and Facebook are among a dozen big companies or their top executives objecting to the controversial legislation. Facebook, Google and Apple have massive data-processing complexes in western North Carolina.

READ MORE: Chargers To Open Season Against Washington; Face Cowboys In Home Opener

But none of the high-profile companies have threatened to immediately withdraw business from the Tar Heel state.

North Carolina is the first state to require public school and university students to use only those bathrooms that match their birth certificates, according to the National Conference on State Legislatures.

Corporations announcing their displeasure “are shamefully bullying” state officials while many small business owners who live in North Carolina support the new legislation, North Carolina Values Coalition Executive Director Tami Fitzgerald said.

“North Carolinians should be aware of this so they have the opportunities to be consumers of companies that are congruent with their values,” Fitzgerald wrote in a statement.

MORE NEWS: Federal Officials Now Investigating Deadly Tesla-Involved Crash On May 5 In Fontana

(TM and © Copyright 2015 CBS Local Media, a division of CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE logo TM and copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed. The Associated Press contributed to this report.)