State paid more than $800,000 in firing