Obama nominates Pentagon’s top lawyer as Homeland Security chief