Danica Patrick passed Helio Castroneves to grab her first victory and become the first female to win a major open wheel race.