The DWP spent tens of millions of pounds fighting – and in many cases losing – appeals over disability benefit decisions last financial year.