IMHO, 2/3 is main problem.
utilities is not the concern.
landlords, require by law, to provide a habitable premise, if fail, you will have a liability issue.
but I do think the judge is unreasonable in this case, you are asking eviction, no damage.