Paul Manafort registered with the Justice Department as an agent of a foreign government, acknowledging for the first time that some of his lobbying work on behalf of Ukraine’s former president was aimed at influencing U.S. policy makers and journalists.