Rules aimed at preventing illegal immigrants from renting properties are "discriminatory" and breach human rights laws, the High Court has ruled