The Senate on Monday confirmed a federal judge from Chicago as Attorney General Michael Mukasey’s second-in-command, restoring the top tier of a Justice Department that had lost many of its officials to a scandal over the firings of nine federal prosecutors.

The unanimous vote installed Mark R. Filip, 41, after a season of partisan wrangling over President Bush’s nominees.