France’s Simon Pagenaud won the IndyCar Grand Prix of Alabama on Sunday, surviving a gritty battle with Graham Rahal for his second straight victory.