The rule updates a policy dating back to the 19th century that has long been used to prohibit immigrants deemed likely to become a “public charge” from getting green cards.