Keir Starmer’s sacking of top civil servant cost taxpayers £500,000 in record payout