A charitable trust and a contractor it employed has been fined for safety failings after disturbing asbestos and continuing to work in a building.