British Supreme Court rejects claim of discrimination, accepts argument that policy is legitimate means of addressing genuine social need for low-cost homes