New mega-town plan headed to court over 'hasty' rezoning