Ted Cruz torches court ruling on border, says GOP primary is over