Developer takes the council to court after refusal