Former FBI Director James Comey plans to tell a Senate panel that Donald Trump asked him to end an investigation of ex-national security adviser Michael Flynn.