President Donald Trump's maiden international trip has long loomed as a crucial first test abroad.