City lawyers and other self-employed partners at businesses including top accountancy and private equity firms have been spared the increases to national insurance contributions announced in October’s budget.