Three companies have been fined a total of more than £1m after workers were exposed to asbestos while refurbishing a school in Waltham Forest.