Alex Gurney passed Scott Pruett with less than two laps remaining to win the Grand-Am Rolex series race at New Jersey Motorsports Park.