The Trump border wall faces a serious legal obstacle