Judge upholds tower block ruling