Donald Trump “recognises the strength” of the Chagos Islands deal, Downing Street said after the US president signalled he would back it.