The Trump administration unveiled a sweeping rule that would limit legal immigration by denying visas and permanent residency to hundreds of thousands of people for being too poor.