The U.S. Department of Labor must pay more than $565,000 in attorney fees to an oilfield services company it accused of wage-and-hour violations totaling more than $6 million, a federal judge has ruled.

Judge John Rainey of the U.S. District for the Southern District of Texas wrote ruled on Monday that the department should have given up its case against Gate Guard Services L.P. of Corpus Christi. Officials, who opened their investigation in 2010, alleged the business improperly classified 400 gate attendants as independent contractors.