San Francisco leaders warn the exodus of technical workers could have ‘serious’ economic consequences