Govt spent over Rs 400 cr in 10 yrs to contest cases