Judge rules against eviction ban as many struggle to pay rent