Lawyers for retired Lt. Gen. Michael Flynn told President Donald Trump’s transition team that Flynn might need to register with the Justice Department as a foreign agent, according to a White House official and a person with direct knowledge of the discussions.