In the Trump administration’s latest effort to prevent dangerous people from entering the country, visitors may soon face vetting of their social media and family histories.