Ed Miliband’s appointment as United Kingdom foreign secretary sparks warnings of tension with President Trump over his past attacks, net-zero policies and foreign affairs.