The Senate confirmed Rod J. Rosenstein Tuesday evening to be the second-highest official at the Justice Department, giving Attorney General Jeff Sessions his first high-level counterpart since he was sworn in early February.