Pato O’Ward takes first IndyCar win at Texas