Spending to outsource legal work more than doubled in the last decade as hundreds of internal positions stayed vacant: government data