Former FBI Director James Comey was charged with making a false statement and obstruction days after President Donald Trump appeared to urge his attorney general to prosecute him.