Suit claims sheriff's office underpaid more than 500 workers