President Obama (R) with Anthony Foxx. (Win McNamee/GETTY IMAGES)

The Senate on Thursday voted 100-0 to approve the nomination of Charlotte mayor Anthony Foxx as Transportation Secretary.

The unanimous vote was a rarity for a Cabinet appointee .

Foxx, whose confirmation process was smooth, drew national attention when his city hosted the 2012 Democratic National Convention. As we’ve noted, at 42, Foxx will be the youngest member of the Obama Cabinet.

He’ll replace Ray LaHood at the helm of DOT.

Foxx’s confirmation leaves two Cabinet nominees pending in the Senate: Tom Perez for Secretary of Labor and Gina McCarthy to head the Environmental Protection Agency.

McCarthy, whose nomination was already meeting with some Republican resistance in the Senate, might have even an even tougher time getting approved now that President Obama has revealed a climate-change agenda that’s ticking off Republicans. As our colleague Juliet Eilperin reported: “Now that the president is proceeding with regulating greenhouse gas emissions from existing power plants, Senate Republicans are likely to be even tougher on McCarthy, who informed them in April the agency was not drafting such regulations.”