A plan for 135 homes in Wynyard can go ahead after a developer won an appeal following a High Court challenge.