Some San Francisco firms using legal loophole to skimp on health care cost