The companies responsible for operating Queensland’s popular Hamilton Island have been ordered to back pay staff more than $28m following a years-long investigation.