US President Donald Trump's foreign policy agenda faces new constraints after midterm losses.