A construction company has been fined after a worker suffered serious injuries when the first floor of the building he was standing on collapsed underneath him.