Two landlords have been fined after housing 22 tenants in a two-bedroom flat in Shadwell, where a man lost his life in a fire.