A panel of the U.S. Court of Appeals for the Second Circuit on Monday rejected a lawsuit by Erie County Clerk Michael Kearns claiming that New York's law allowing undocumented immigrants to obtain driver's licenses could expose government workers to federal prosecution.