Lawsuit had sought to block border wall construction in national park by targeting waivers that sidestep protections.