The Environment Court has given the green light to a contested residential housing development in Auckland.