WASHINGTON — President Barack Obama and Chinese President Xi Jinping pledged Thursday to cooperate to confront the North Korean nuclear threat while working to narrow persistent differences over cybersecurity, human rights and maritime conflicts. Obama, opening a global nuclear security summit near the White House, also joined leaders of Japan and South Korea in calling for further joint steps to deter North Korea.