; and (B) appeal an order of an administrative law judge under subparagraph (A) to a court of competent jurisdiction. (5) Temporary or permanent injunctive relief The Secretary may petition any court of competent jurisdiction for temporary or permanent injunctive relief against any contractor or subcontractor that violates an order issued under paragraph (1). A court shall issue such temporary or permanent injunctive relief if the Secretary has demonstrated it is just and proper. (6) Compensation for lost work (A) In general Subject to subparagraph (B), a contractor or subcontractor with respect to whom an order is issued under paragraph (1) shall pay each laborer or mechanic described in subparagraph (C) the compensation that would be owed to such laborer or mechanic if the order was not issued. (B) Limitation Compensation paid under subparagraph (A) shall be for each day, not to exceed 10 days, for which the laborer or mechanic would be paid if the order described in such subparagraph were not in effect. (C) Applicability Subparagraph (A) applies to a laborer or mechanic who— (i) is an employee of the contractor or subcontractor against whom an order is issued under paragraph (1); (ii) is performing labor under the contract or subcontract, respectively, that is subject to the order