Two families won their appeals against the so-called bedroom tax at the Supreme Court. The court ruled that the government’s changes to housing benefit were unfair and discriminated against them, but dismissed similar challenges from five others.