Legal challenge by landlords group thrown out by judge