A federal judge recently rejected a New Hampshire Department of Transportation study of a 20-mile highway-widening project , ruling that the state needed to recalculate impacts on traffic and air quality .