WASHINGTON -- President Barack Obama on Friday nominated the Pentagon's former top lawyer to help craft the nation's counterterrorism policy as Homeland Security secretary, suggesting a shift from the department's emphasis on immigration and border issues to a greater focus on security against possible attacks.