The authority has asked the court to quash its own planning decision. A legal challenge could delay thousands of new homes.