A legal challenge by Walsall Council to block a controversial green belt development in Great Barr has been dismissed by the courts.