The father of a Down's syndrome baby at the centre of a surrogacy scandal did not abandon him in Thailand and can keep his twin sister despite being a convicted paedophile, a court ruled.