Sir Keir Starmer sought to woo Donald Trump with an invite for an unprecedented state visit ahead of crunch talks on Ukraine and the economy.