Councils in court over asthma cases