A Pakistani man has been convicted of planning to kill Donald Trump and other prominent US politicians.