Trump and Starmer signed what both sides hailed as a historic agreement on science and technology but opinions diverged on immigration and Palestine.