Councils spent more than £10m fighting tribunals over child special needs support