Legislation comes as Trump administration reportedly weighs travel ban for citizens from a select group of countries.