Eighteen children’s centres are set to close after councillors decided to press ahead with a shake-up of family services.