Saying he “made a mistake,” Republican Sen. Judd Gregg withdrew yesterday as the nominee for commerce secretary, dealing a fresh blow to President Obama’s quest to fill out his Cabinet and dramatically undercutting his efforts to forge a new bipartisanship in the capital.