A contentious development project in the midway district hit a big legal hurdle on how tall the project can get.