$ 0 0 A state judge has upheld New York City's decision to issue a building permit for the much-debated Trump SoHo hotel-condominium project.