A construction company and a roofing firm have been fined after a worker was seriously injured in a fall through the roof of a South Shields community centre.