A tweet from US President Donald Trump has thrown into doubt a deal between Australia and the US over resettling refugees.