Republican state officials threaten legal action over company diversity policies