Tory councils threaten legal action over government plans to house …