Companies fined £320,000 following death of contractor