A landlord whose tenants had to use toilets at work when repairs weren’t done at their unlicensed flat has been ordered to repay £24,480.