Two companies have been fined after a worker suffered serious head injuries when he fell during loading operations.