Two roofing companies and one of their directors have been fined after a worker fell to his death through a skylight.