A legal challenge against planning permission for 1,600 homes on land left to a Cambridge University college 384 years ago has been thrown out.