Alabama court gives upset victory to pharma