A construction company has been fined after flooring at a house-building development gave way, injuring a worker.