Defiant Rick Perry at courthouse: 'We will prevail'